Author: lluis
Date: 2005-09-27 19:25:01 -0400 (Tue, 27 Sep 2005)
New Revision: 50897
Added:
trunk/monodevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Services/Services.cs
Log:
Forgot one file.
Added:
trunk/monodevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Services/Services.cs
===================================================================
---
trunk/monodevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Services/Services.cs
2005-09-27 21:41:24 UTC (rev 50896)
+++
trunk/monodevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Services/Services.cs
2005-09-27 23:25:01 UTC (rev 50897)
@@ -0,0 +1,59 @@
+using System;
+
+using MonoDevelop.Core;
+using MonoDevelop.Core.Execution;
+using MonoDevelop.Core.Gui;
+using MonoDevelop.Projects;
+
+namespace MonoDevelop.SourceEditor
+{
+ class Services
+ {
+ static IDebuggingService debuggingService;
+ static MessageService messageService;
+ static ResourceService resourceService;
+ static LanguageBindingService languageBindingService;
+ static DispatchService dispatchService;
+
+ public static MessageService MessageService {
+ get {
+ if (messageService == null)
+ messageService = (MessageService)
ServiceManager.GetService (typeof(MessageService));
+ return messageService;
+ }
+ }
+
+ public static ResourceService Resources {
+ get {
+ if (resourceService == null)
+ resourceService = (ResourceService)
ServiceManager.GetService (typeof(ResourceService));
+ return resourceService;
+ }
+ }
+
+ public static IDebuggingService DebuggingService {
+ get {
+ if (debuggingService == null)
+ debuggingService = (IDebuggingService)
ServiceManager.GetService (typeof(IDebuggingService));
+ return debuggingService;
+ }
+ }
+
+ public static LanguageBindingService Languages {
+ get {
+ if (languageBindingService == null)
+ languageBindingService =
(LanguageBindingService) ServiceManager.GetService
(typeof(LanguageBindingService));
+ return languageBindingService;
+ }
+ }
+
+ public static DispatchService DispatchService {
+ get {
+ if (dispatchService == null)
+ dispatchService = (DispatchService)
ServiceManager.GetService (typeof(DispatchService));
+ return dispatchService;
+ }
+ }
+ }
+}
+
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches