예제 #1
0
        private void Setup()
        {
            VisualStudioServices.ServiceProvider    = this;
            VisualStudioServices.OLEServiceProvider = (Microsoft.VisualStudio.OLE.Interop.IServiceProvider)VisualStudioServices.ServiceProvider.GetService(typeof(Microsoft.VisualStudio.OLE.Interop.IServiceProvider));

            VisualStudioServices.ComponentModel = (IComponentModel)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SComponentModel));

            EditorService.Create(VisualStudioServices.ServiceProvider, VisualStudioServices.OLEServiceProvider);
            ProjectSelectionService.Create();
        }
예제 #2
0
 private void WhenDisposeResource()
 {
     EditorService.Destroy();
     ProjectSelectionService.Destroy();
 }