diff options
author | Lluis Sanchez <lluis@novell.com> | 2009-06-23 18:26:38 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2009-06-23 18:26:38 +0400 |
commit | d8dc77a1a455a6fddd3d14bae485043d401d9be0 (patch) | |
tree | 5bc5d820e4894d8433bfa85ed8a6b8e6c121d911 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting | |
parent | 7e6efa39afcfc5dbd97b652b8dba8a4183be4171 (diff) |
Use the new DesktopService instead of PlatformService.
svn path=/trunk/monodevelop/; revision=136706
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs index 2dc570526a..8feb6be54e 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs @@ -28,7 +28,7 @@ using System; using MonoDevelop.Components.Commands; using MonoDevelop.Projects.Text; using MonoDevelop.Ide.Gui; - +using MonoDevelop.Core.Gui; namespace MonoDevelop.Ide.CodeFormatting @@ -43,7 +43,7 @@ namespace MonoDevelop.Ide.CodeFormatting protected override void Update (CommandInfo info) { if (IdeApp.Workbench.ActiveDocument != null && IdeApp.Workbench.ActiveDocument.IsFile) { - string mt = IdeApp.Services.PlatformService.GetMimeTypeForUri (IdeApp.Workbench.ActiveDocument.FileName); + string mt = DesktopService.GetMimeTypeForUri (IdeApp.Workbench.ActiveDocument.FileName); IPrettyPrinter printer = TextFileService.GetPrettyPrinter (mt); if (printer != null) return; @@ -56,7 +56,7 @@ namespace MonoDevelop.Ide.CodeFormatting Document doc = IdeApp.Workbench.ActiveDocument; if (doc == null) return; - string mt = IdeApp.Services.PlatformService.GetMimeTypeForUri (doc.FileName); + string mt = DesktopService.GetMimeTypeForUri (doc.FileName); IPrettyPrinter printer = TextFileService.GetPrettyPrinter (mt); if (printer == null) return; |