Exemplo n.º 1
0
 /// <summary>
 /// Register the package commands (which must exist in the .vsct file).
 /// </summary>
 private void RegisterCommands()
 {
     // Initialize the individual commands, which internally register for command events.
     AboutCommand.Initialize(this);
     BuildProgressToolWindowCommand.Initialize(this);
     CleanupActiveCodeCommand.Initialize(this);
     CleanupAllCodeCommand.Initialize(this);
     CleanupOpenCodeCommand.Initialize(this);
     CleanupSelectedCodeCommand.Initialize(this);
     CloseAllReadOnlyCommand.Initialize(this);
     CollapseAllSolutionExplorerCommand.Initialize(this);
     CollapseSelectedSolutionExplorerCommand.Initialize(this);
     CommentFormatCommand.Initialize(this);
     FindInSolutionExplorerCommand.Initialize(this);
     JoinLinesCommand.Initialize(this);
     OptionsCommand.Initialize(this);
     ReadOnlyToggleCommand.Initialize(this);
     RemoveRegionCommand.Initialize(this);
     ReorganizeActiveCodeCommand.Initialize(this);
     SettingCleanupOnSaveCommand.Initialize(this);
     SortLinesCommand.Initialize(this);
     SpadeContextDeleteCommand.Initialize(this);
     SpadeContextFindReferencesCommand.Initialize(this);
     SpadeContextInsertRegionCommand.Initialize(this);
     SpadeContextRemoveRegionCommand.Initialize(this);
     SpadeOptionsCommand.Initialize(this);
     SpadeRefreshCommand.Initialize(this);
     SpadeSearchCommand.Initialize(this);
     SpadeSortOrderAlphaCommand.Initialize(this);
     SpadeSortOrderFileCommand.Initialize(this);
     SpadeSortOrderTypeCommand.Initialize(this);
     SpadeToolWindowCommand.Initialize(this);
     SwitchFileCommand.Initialize(this);
 }
Exemplo n.º 2
0
        /// <summary 包的命令>
        /// 包的命令
        /// Register the package commands (which must exist in the .vsct file).
        /// </summary>
        private void RegisterCommands()
        {
            // Initialize the individual commands, which internally register for command events.
            AboutCommand.Initialize(this);
            BuildProgressToolWindowCommand.Initialize(this);
            CleanupActiveCodeCommand.Initialize(this);   //清理当前活动文档
            CleanupAllCodeCommand.Initialize(this);      //清理所有的代码
            CleanupOpenCodeCommand.Initialize(this);     //清理打开的代码
            CleanupSelectedCodeCommand.Initialize(this); //清理已选的代码
            CloseAllReadOnlyCommand.Initialize(this);
            CollapseAllSolutionExplorerCommand.Initialize(this);
            CollapseSelectedSolutionExplorerCommand.Initialize(this);
            CommentFormatCommand.Initialize(this);
            FindInSolutionExplorerCommand.Initialize(this);
            JoinLinesCommand.Initialize(this);
            OptionsCommand.Initialize(this);
            ReadOnlyToggleCommand.Initialize(this);
            RemoveRegionCommand.Initialize(this);
            ReorganizeActiveCodeCommand.Initialize(this);
            SettingCleanupOnSaveCommand.Initialize(this);
            SortLinesCommand.Initialize(this);
            SpadeContextDeleteCommand.Initialize(this);
            SpadeContextFindReferencesCommand.Initialize(this);
            SpadeContextInsertRegionCommand.Initialize(this);
            SpadeContextRemoveRegionCommand.Initialize(this);
            SpadeOptionsCommand.Initialize(this);
            SpadeRefreshCommand.Initialize(this);
            SpadeSearchCommand.Initialize(this);
            SpadeSortOrderAlphaCommand.Initialize(this);
            SpadeSortOrderFileCommand.Initialize(this);
            SpadeSortOrderTypeCommand.Initialize(this);
            SpadeToolWindowCommand.Initialize(this);
            SwitchFileCommand.Initialize(this);

            //新增关于嵌入文件和移出文件命令
            NestInFileCommand.Initialize(this);                //嵌入文件按钮注册
            NestOutFileCommand.Initialize(this);               //移出嵌入文件按钮注册
            RefactoringCodeCommand.Initialize(this);           //重构代码
            FilesDifferentCommand.Initialize(this);            //文件比较
            //浏览器刷新页面
            Options = (Options)GetDialogPage(typeof(Options)); //选项配置
            //数据库文档导出
            DataBaseWordExportWindowCommand.Initialize(this);
        }