Esempio n. 1
0
        /// Initialization of the package; this method is called right after the package is sited, so this is the place
        /// where you can put all the initialization code that rely on services provided by VisualStudio.
        protected override void Initialize()
        {
            var serviceProvider = this;
            var commandFactory = new CommandFactory(serviceProvider);
            var guidDevarchToolsMenu = new Guid("d5a065b2-0a4e-4adc-ad08-2e4178f6ed21");

            commandFactory.AddCommand(new GenerateImagesCommand(serviceProvider), new CommandID(guidDevarchToolsMenu, 0x0105));
            commandFactory.AddCommand(new ViewDiagramsCommand(serviceProvider), new CommandID(guidDevarchToolsMenu, 0x0106) );
            base.Initialize();
        }
Esempio n. 2
0
 /// Initialization of the package; this method is called right after the package is sited, so this is the place
 /// where you can put all the initialization code that rely on services provided by VisualStudio.
 protected override void Initialize()
 {
     ProjectDeployer.EnsureDevArchProjectSupportExists();
     var serviceProvider = this;
     var commandFactory = new CommandFactory(serviceProvider);
     var guidDevarchToolsMenu = new Guid("d5a065b2-0a4e-4adc-ad08-2e4178f6ed21");
     var componentModel = (IComponentModel)GetGlobalService(typeof(SComponentModel));
     Workspace = componentModel.GetService<VisualStudioWorkspace>();
     commandFactory.AddCommand(new GenerateImagesCommand(serviceProvider, Workspace), new CommandID(guidDevarchToolsMenu, 0x0105));
     //commandFactory.AddCommand(new ViewDiagramsCommand(serviceProvider), new CommandID(guidDevarchToolsMenu, 0x0106) );
     base.Initialize();
 }