/// <summary> /// Provide the menu commands that this command set handles /// </summary> protected override global::System.Collections.Generic.IList <global::System.ComponentModel.Design.MenuCommand> GetMenuCommands() { // Get the standard commands global::System.Collections.Generic.IList <global::System.ComponentModel.Design.MenuCommand> commands = base.GetMenuCommands(); global::System.ComponentModel.Design.MenuCommand menuCommand; // Add command handler for the "view explorer" command in the top-level menu. // We use a ContextBoundMenuCommand because the visibility of this command is // based on whether or not the command context of our DSL editor is active. menuCommand = new DslShell::CommandContextBoundMenuCommand(this.ServiceProvider, new global::System.EventHandler(OnMenuViewModelExplorer), Constants.ViewvShomeExplorerCommand, typeof(vShomeEditorFactory).GUID); commands.Add(menuCommand); // Add handler for "Validate All" menu command (validates the entire model). menuCommand = new DslShell::DynamicStatusMenuCommand(new global::System.EventHandler(OnStatusValidateModel), new global::System.EventHandler(OnMenuValidateModel), DslShell::CommonModelingCommands.ValidateModel); commands.Add(menuCommand); // Add handler for "Validate" menu command (validates the current selection). menuCommand = new DslShell::DynamicStatusMenuCommand(new global::System.EventHandler(OnStatusValidate), new global::System.EventHandler(OnMenuValidate), DslShell::CommonModelingCommands.Validate); commands.Add(menuCommand); return(commands); }
/// <summary> /// Provide the menu commands that this command set handles /// </summary> protected override global::System.Collections.Generic.IList<global::System.ComponentModel.Design.MenuCommand> GetMenuCommands() { // Get the standard commands global::System.Collections.Generic.IList<global::System.ComponentModel.Design.MenuCommand> commands = base.GetMenuCommands(); global::System.ComponentModel.Design.MenuCommand menuCommand; // Add command handler for the "view explorer" command in the top-level menu. // We use a ContextBoundMenuCommand because the visibility of this command is // based on whether or not the command context of our DSL editor is active. menuCommand = new DslShell::CommandContextBoundMenuCommand(this.ServiceProvider, new global::System.EventHandler(OnMenuViewModelExplorer), Constants.ViewActiveWriterExplorerCommand, typeof(ActiveWriterEditorFactory).GUID); commands.Add(menuCommand); // Add handler for "Validate All" menu command (validates the entire model). menuCommand = new DslShell::DynamicStatusMenuCommand(new global::System.EventHandler(OnStatusValidateModel), new global::System.EventHandler(OnMenuValidateModel), DslShell::CommonModelingCommands.ValidateModel); commands.Add(menuCommand); // Add handler for "Validate" menu command (validates the current selection). menuCommand = new DslShell::DynamicStatusMenuCommand(new global::System.EventHandler(OnStatusValidate), new global::System.EventHandler(OnMenuValidate), DslShell::CommonModelingCommands.Validate); commands.Add(menuCommand); return commands; }
/// <summary> /// Provide the menu commands that this command set handles /// </summary> protected override global::System.Collections.Generic.IList<global::System.ComponentModel.Design.MenuCommand> GetMenuCommands() { // Get the standard commands global::System.Collections.Generic.IList<global::System.ComponentModel.Design.MenuCommand> commands = base.GetMenuCommands(); global::System.ComponentModel.Design.MenuCommand menuCommand; // Add command handler for the "view explorer" command in the top-level menu. // We use a ContextBoundMenuCommand because the visibility of this command is // based on whether or not the command context of our DSL editor is active. menuCommand = new DslShell::CommandContextBoundMenuCommand(this.ServiceProvider, new global::System.EventHandler(OnMenuViewModelExplorer), Constants.ViewFWK_DslExplorerCommand, typeof(FWK_DslEditorFactory).GUID); commands.Add(menuCommand); return commands; }
/// <summary> /// Provide the menu commands that this command set handles /// </summary> protected override global::System.Collections.Generic.IList <global::System.ComponentModel.Design.MenuCommand> GetMenuCommands() { // Get the standard commands global::System.Collections.Generic.IList <global::System.ComponentModel.Design.MenuCommand> commands = base.GetMenuCommands(); global::System.ComponentModel.Design.MenuCommand menuCommand; // Add command handler for the "view explorer" command in the top-level menu. // We use a ContextBoundMenuCommand because the visibility of this command is // based on whether or not the command context of our DSL editor is active. menuCommand = new DslShell::CommandContextBoundMenuCommand(this.ServiceProvider, new global::System.EventHandler(OnMenuViewModelExplorer), Constants.ViewFWK_DslExplorerCommand, typeof(FWK_DslEditorFactory).GUID); commands.Add(menuCommand); return(commands); }