~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/DesignerSupportService.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
{
45
45
        
46
46
        
47
 
        public class DesignerSupportService : AbstractService
 
47
        public class DesignerSupportService
48
48
        {
49
49
                PropertyPad propertyPad = null;
50
50
                ToolboxService toolboxService = null;
51
 
                CodeBehindService codeBehindService = new CodeBehindService ();
52
51
                IPropertyProvider[] providers;
53
52
                
54
53
                IPropertyPadProvider lastPadProvider;
199
198
                
200
199
                #endregion
201
200
                
202
 
                #region CodeBehind
203
 
                
204
 
                public CodeBehindService CodeBehindService {
205
 
                        get { return codeBehindService; }
206
 
                }
207
 
                
208
 
                #endregion
209
 
                
210
 
                #region IService implementations
211
 
                
212
 
                public override void InitializeService()
 
201
                internal DesignerSupportService ()
213
202
                {
214
 
                        base.InitializeService ();
215
 
                        codeBehindService.Initialise ();
216
203
                        IdeApp.CommandService.RegisterCommandTargetVisitor (new PropertyPadVisitor ());
217
204
                        AddinManager.ExtensionChanged += OnExtensionChanged;
218
205
                }
224
211
                                ReSetPad ();
225
212
                        }
226
213
                }
227
 
                
228
 
                #endregion
229
214
        }
230
215
        
231
216
        public static class DesignerSupport
235
220
                public static DesignerSupportService Service {
236
221
                        get {
237
222
                                if (designerSupportService == null)
238
 
                                        designerSupportService = (DesignerSupportService) ServiceManager.GetService (typeof(DesignerSupportService));
 
223
                                        designerSupportService = new DesignerSupportService ();
239
224
                                return designerSupportService;
240
225
                        }
241
226
                }