Ejemplo n.º 1
0
        private async System.Threading.Tasks.Task InitializeAsyncCommands()
        {
            if (null == CompileCommand.Instance)
            {
                await CompileCommand.InitializeAsync(mCommandsController, mErrorWindow, mOutputController, this, CommandSet, CommandIds.kCompileId);
            }

            if (null == TidyCommand.Instance)
            {
                await TidyCommand.InitializeAsync(mCommandsController, mErrorWindow, mOutputController, this, CommandSet, CommandIds.kTidyId);

                await TidyCommand.InitializeAsync(mCommandsController, mErrorWindow, mOutputController, this, CommandSet, CommandIds.kTidyFixId);
            }

            if (null == ClangFormatCommand.Instance)
            {
                await ClangFormatCommand.InitializeAsync(mCommandsController, mErrorWindow, mOutputController, this, CommandSet, CommandIds.kClangFormat);
            }

            if (null == StopClang.Instance)
            {
                await StopClang.InitializeAsync(mCommandsController, mErrorWindow, mOutputController, this, CommandSet, CommandIds.kStopClang);
            }

            if (null == SettingsCommand.Instance)
            {
                await SettingsCommand.InitializeAsync(this, CommandSet, CommandIds.kSettingsId);
            }
        }
        public async System.Threading.Tasks.Task InitializeAsyncCommands(AsyncPackage aAsyncPackage,
                                                                         ErrorWindowController aErrorController, OutputWindowController aOutputWindowController)
        {
            if (null == CompileCommand.Instance)
            {
                await CompileCommand.InitializeAsync(this, aErrorController, aOutputWindowController, aAsyncPackage, mCommandSet, CommandIds.kCompileId);
            }

            if (null == TidyCommand.Instance)
            {
                await TidyCommand.InitializeAsync(this, aErrorController, aOutputWindowController, aAsyncPackage, mCommandSet, CommandIds.kTidyId);

                await TidyCommand.InitializeAsync(this, aErrorController, aOutputWindowController, aAsyncPackage, mCommandSet, CommandIds.kTidyFixId);
            }

            if (null == ClangFormatCommand.Instance)
            {
                await ClangFormatCommand.InitializeAsync(this, aErrorController, aOutputWindowController, aAsyncPackage, mCommandSet, CommandIds.kClangFormat);
            }

            if (null == StopClang.Instance)
            {
                await StopClang.InitializeAsync(this, aErrorController, aOutputWindowController, aAsyncPackage, mCommandSet, CommandIds.kStopClang);
            }

            if (null == SettingsCommand.Instance)
            {
                await SettingsCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kSettingsId);
            }
        }
Ejemplo n.º 3
0
        public async System.Threading.Tasks.Task InitializeCommandsAsync(AsyncPackage aAsyncPackage)
        {
            if (CompileCommand.Instance == null)
            {
                await CompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kCompileId);

                await CompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kCompileToolbarId);
            }

            if (TidyCommand.Instance == null)
            {
                await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyId);

                await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.TidyToolbarId);

                await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyFixId);

                await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyFixToolbarId);
            }

            if (ClangFormatCommand.Instance == null)
            {
                await ClangFormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kClangFormat);

                await ClangFormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kClangFormatToolbarId);
            }

            if (IgnoreFormatCommand.Instance == null)
            {
                await IgnoreFormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kIgnoreFormatId);
            }

            if (IgnoreCompileCommand.Instance == null)
            {
                await IgnoreCompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kIgnoreCompileId);
            }

            if (StopClang.Instance == null)
            {
                await StopClang.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kStopClang);
            }

            if (SettingsCommand.Instance == null)
            {
                await SettingsCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kSettingsId);
            }

            if (TidyConfigCommand.Instance == null)
            {
                await TidyConfigCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kITidyExportConfigId);
            }
        }
        public async System.Threading.Tasks.Task InitializeAsyncCommands(AsyncPackage aAsyncPackage)
        {
            if (null == CompileCommand.Instance)
            {
                await CompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kCompileId);
            }

            if (null == TidyCommand.Instance)
            {
                await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyId);

                await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyFixId);

                await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyFixMenuId);
            }

            if (null == ClangFormatCommand.Instance)
            {
                await ClangFormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kClangFormat);
            }

            if (IgnoreFormatCommand.Instance == null)
            {
                await IgnoreFormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kIgnoreFormatId);
            }

            if (IgnoreCompileCommand.Instance == null)
            {
                await IgnoreCompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kIgnoreCompileId);
            }

            if (null == StopClang.Instance)
            {
                await StopClang.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kStopClang);
            }

            if (null == SettingsCommand.Instance)
            {
                await SettingsCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kSettingsId);
            }
        }