public EAAddin():base() { this.menuHeader = menuName; this.menuOptions = new string[] {menuOperation,menuDiagrams}; this.settings = new NavigatorSettings(); }
public NavigatorSettingsForm(NavigatorSettings settings) { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); this.settings = settings; this.projectBrowserRadioButton.Checked = settings.projectBrowserDefaultAction; this.propertiesRadioButton.Checked = ! settings.projectBrowserDefaultAction; this.showToolbarCheckBox.Checked = this.settings.toolbarVisible; this.useContextMenuCheckBox.Checked = this.settings.contextmenuVisible; this.trackSelectedElementCheckBox.Checked = this.settings.trackSelectedElement; //quicksearch settings this.quickSearchElementsCheck.Checked = this.settings.quickSearchElements; this.quickSearchOperationsCheck.Checked = this.settings.quickSearchOperations; this.quickSearchAttributesCheck.Checked = this.settings.quickSearchAttributes; this.quickSearchDiagramsCheck.Checked = this.settings.quickSearchDiagrams; this.quickSearchAddToDiagramCheck.Checked = this.settings.quickSearchAddToDiagram; this.quickSearchSelectCheckBox.Checked = this.settings.quickSearchSelectProjectBrowser ; }
private void navigate(UML.UMLItem item) { if (fullyLoaded) { if (this.navigatorControl == null) { this.navigatorControl = this.model.addWindow("Navigate", "TSF.UmlToolingFramework.EANavigator.NavigatorControl") as NavigatorControl; this.navigatorControl.BeforeExpand += new TreeViewCancelEventHandler(this.NavigatorTreeBeforeExpand); this.navigatorControl.NodeDoubleClick += new TreeNodeMouseClickEventHandler(this.NavigatorTreeNodeDoubleClick); this.navigatorControl.fqnButtonClick += new EventHandler(this.FqnButtonClick); this.navigatorControl.guidButtonClick += new EventHandler(this.GuidButtonClick); this.navigatorControl.quickSearchTextChanged += new EventHandler(this.quickSearchTextChanged); this.navigatorControl.settings = this.settings; } if (this.navigatorControl != null && this.model != null) { if (item != null) { this.navigatorControl.setElement(item); } } } }