protected override void CommandBeforeQueryStatus(EnvDTE80.DTE2 applicationObject, OleMenuCommand menuCommand) { CommonHandlers.ActionBeforeQueryStatusConnectionIsNotReadOnly(applicationObject, menuCommand); CommonHandlers.ActionBeforeQueryStatusActiveDocumentJavaScript(applicationObject, menuCommand); CommonHandlers.CorrectCommandNameForConnectionName(applicationObject, menuCommand, Properties.CommandNames.CodeWebResourceIncludeReferencesToDependencyXmlCommand); }
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; } }
protected override void CommandBeforeQueryStatus(EnvDTE80.DTE2 applicationObject, ConnectionData connectionData, OleMenuCommand menuCommand) { CommonHandlers.ActionBeforeQueryStatusActiveDocumentJavaScript(applicationObject, menuCommand); }
protected override void CommandBeforeQueryStatus(EnvDTE80.DTE2 applicationObject, OleMenuCommand menuCommand) { CommonHandlers.ActionBeforeQueryStatusActiveDocumentJavaScript(applicationObject, menuCommand); CommonHandlers.CorrectCommandNameForConnectionName(applicationObject, menuCommand, Properties.CommandNames.CodeJavaScriptUpdateGlobalOptionSetSingleFileWithSelectCommand); }
protected override void CommandBeforeQueryStatus(EnvDTE80.DTE2 applicationObject, OleMenuCommand menuCommand) { CommonHandlers.ActionBeforeQueryStatusActiveDocumentJavaScript(applicationObject, menuCommand); CommonHandlers.CorrectCommandNameForConnectionName(applicationObject, menuCommand, Properties.CommandNames.JavaScriptFileGenerationOptionsCommand); }