Ejemplo n.º 1
0
 protected override void CommandBeforeQueryStatus(EnvDTE80.DTE2 applicationObject, ConnectionData connectionData, OleMenuCommand menuCommand)
 {
     if (_selectedFileType == SelectedFileType.WebResourceJavaScriptHasLinkedGlobalOptionSet)
     {
         CommonHandlers.ActionBeforeQueryStatusActiveDocumentJavaScriptHasLinkedGlobalOptionSetName(applicationObject, menuCommand);
     }
     else if (_selectedFileType == SelectedFileType.CSharpHasLinkedGlobalOptionSet)
     {
         CommonHandlers.ActionBeforeQueryStatusActiveDocumentCSharpHasLinkedGlobalOptionSetName(applicationObject, menuCommand);
     }
 }
Ejemplo n.º 2
0
        protected override void CommandBeforeQueryStatus(EnvDTE80.DTE2 applicationObject, OleMenuCommand menuCommand)
        {
            if (_selectedFileType == SelectedFileType.WebResourceJavaScriptHasLinkedGlobalOptionSet)
            {
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentJavaScriptHasLinkedGlobalOptionSetName(applicationObject, menuCommand);
            }
            else if (_selectedFileType == SelectedFileType.CSharpHasLinkedGlobalOptionSet)
            {
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentCSharpHasLinkedGlobalOptionSetName(applicationObject, menuCommand);
            }

            CommonHandlers.CorrectCommandNameForConnectionName(applicationObject, menuCommand, Properties.CommandNames.CodeLinkedGlobalOptionSetExplorerCommand);
        }
Ejemplo n.º 3
0
        public void CommandBeforeQueryStatus(DTE2 applicationObject, OleMenuCommand menuCommand, SelectedFileType selectedFileType)
        {
            switch (selectedFileType)
            {
            case SelectedFileType.WebResource:
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentWebResource(applicationObject, menuCommand);
                break;

            case SelectedFileType.WebResourceText:
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentWebResourceText(applicationObject, menuCommand);
                break;

            case SelectedFileType.WebResourceJavaScript:
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentJavaScript(applicationObject, menuCommand);
                break;

            case SelectedFileType.WebResourceJavaScriptHasLinkedSystemForm:
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentJavaScriptHasLinkedSystemForm(applicationObject, menuCommand);
                break;

            case SelectedFileType.WebResourceJavaScriptHasLinkedGlobalOptionSet:
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentJavaScriptHasLinkedGlobalOptionSetName(applicationObject, menuCommand);
                break;

            case SelectedFileType.Report:
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentReport(applicationObject, menuCommand);
                break;

            case SelectedFileType.CSharp:
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentCSharp(applicationObject, menuCommand);
                break;

            case SelectedFileType.CSharpHasLinkedGlobalOptionSet:
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentCSharpHasLinkedGlobalOptionSetName(applicationObject, menuCommand);
                break;

            case SelectedFileType.Xml:
                CommonHandlers.ActionBeforeQueryStatusActiveDocumentXml(applicationObject, menuCommand);
                break;

            default:
                menuCommand.Enabled = menuCommand.Visible = false;
                break;
            }
        }