Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <llsan@microsoft.com>2019-02-15 21:25:10 +0300
committerLluis Sanchez <llsan@microsoft.com>2019-02-15 21:52:56 +0300
commit2e9046725a5629d208a35e8312ad5904a05c851f (patch)
treebc87f59d35ebf88f0683dbbe39bf71c6be5fa6e4 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
parentca94e4851759c70a3f44e6ed4d2d1f3296ed0bcf (diff)
Track API changes
All services are now referenced from the IdeServices class
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
index 034e335011..414a354ff8 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
@@ -1,4 +1,4 @@
-// NewFileCommands.cs
+// NewFileCommands.cs
//
// Author:
// Carlo Kok (ck@remobjects.com)
@@ -154,7 +154,7 @@ namespace MonoDevelop.Ide.Commands
{
try {
isRunning = true;
- await IdeApp.Workbench.CloseAllDocumentsAsync (false);
+ await IdeApp.Workbench.CloseAllDocuments (false);
} finally {
isRunning = false;
}
@@ -276,7 +276,7 @@ namespace MonoDevelop.Ide.Commands
{
protected override void Update (CommandArrayInfo info)
{
- var files = DesktopService.RecentFiles.GetFiles ();
+ var files = IdeServices.DesktopService.RecentFiles.GetFiles ();
if (files.Count == 0)
return;
@@ -291,7 +291,7 @@ namespace MonoDevelop.Ide.Commands
var cmd = new CommandInfo (commandText) {
Description = string.Format (descFormat, ri.FileName)
};
-/* Gdk.Pixbuf icon = DesktopService.GetIconForFile (ri.FileName, IconSize.Menu);
+/* Gdk.Pixbuf icon = IdeServices.DesktopService.GetIconForFile (ri.FileName, IconSize.Menu);
#pragma warning disable 618
if (icon != null)
cmd.Icon = ImageService.GetStockId (icon, IconSize.Menu);
@@ -321,7 +321,7 @@ namespace MonoDevelop.Ide.Commands
question,
AlertButton.No,
AlertButton.Yes) == AlertButton.Yes) {
- DesktopService.RecentFiles.ClearFiles ();
+ IdeServices.DesktopService.RecentFiles.ClearFiles ();
}
} catch (Exception ex) {
LoggingService.LogError ("Error clearing recent files list", ex);
@@ -330,7 +330,7 @@ namespace MonoDevelop.Ide.Commands
protected override void Update (CommandInfo info)
{
- info.Enabled = DesktopService.RecentFiles.GetFiles ().Count > 0;
+ info.Enabled = IdeServices.DesktopService.RecentFiles.GetFiles ().Count > 0;
}
}
@@ -339,7 +339,7 @@ namespace MonoDevelop.Ide.Commands
{
protected override void Update (CommandArrayInfo info)
{
- var projects = DesktopService.RecentFiles.GetProjects ();
+ var projects = IdeServices.DesktopService.RecentFiles.GetProjects ();
if (projects.Count == 0)
return;
@@ -353,7 +353,7 @@ namespace MonoDevelop.Ide.Commands
if (!File.Exists (ri.FileName))
continue;
- icon = IdeApp.Services.ProjectService.FileIsObjectOfType (ri.FileName, typeof(Solution)) ? "md-solution": "md-workspace";
+ icon = IdeServices.ProjectService.FileIsObjectOfType (ri.FileName, typeof(Solution)) ? "md-solution": "md-workspace";
}
catch (UnauthorizedAccessException exAccess) {
LoggingService.LogWarning ("Error building recent solutions list (Permissions)", exAccess);
@@ -406,7 +406,7 @@ namespace MonoDevelop.Ide.Commands
question,
AlertButton.No,
AlertButton.Yes) == AlertButton.Yes) {
- DesktopService.RecentFiles.ClearProjects ();
+ IdeServices.DesktopService.RecentFiles.ClearProjects ();
}
} catch (Exception ex) {
LoggingService.LogError ("Error clearing recent projects list", ex);
@@ -415,7 +415,7 @@ namespace MonoDevelop.Ide.Commands
protected override void Update (CommandInfo info)
{
- info.Enabled = DesktopService.RecentFiles.GetProjects ().Count > 0;
+ info.Enabled = IdeServices.DesktopService.RecentFiles.GetProjects ().Count > 0;
}
}