private void NavigateExplorerTreeNode(object sender, TreeNodeNavigateCodeEventArgs e) { var declaration = e.Declaration; if (declaration != null) { VBE.SetSelection(new QualifiedSelection(declaration.QualifiedName.QualifiedModuleName, declaration.Selection)); } }
private void codePresenter_Rename(object sender, TreeNodeNavigateCodeEventArgs e) { var declaration = e.Node.Tag as Declaration; if (declaration == null) { return; } _refactorMenu.Rename(declaration); }
private void SelectionChanged(object sender, TreeNodeNavigateCodeEventArgs e) { if (e.Node == null || e.Node.Tag == null) { return; } try { VBE.ActiveVBProject = e.QualifiedName.Project; } catch (COMException) { // swallow "catastrophic failure" } }
private void RenameSelection(object sender, TreeNodeNavigateCodeEventArgs e) { if (e.Node == null || e.Selection.Equals(default(Selection)) && e.QualifiedName == default(QualifiedModuleName)) { return; } var handler = Rename; if (handler != null) { handler(this, e); RefreshExplorerTreeView(); e.Node.EnsureVisible(); } }
private void RenameSelection(object sender, TreeNodeNavigateCodeEventArgs e) { if (e.Node == null || e.Node.Tag == null) { return; } var handler = Rename; if (handler != null) { handler(this, e); RefreshExplorerTreeView(); e.Node.EnsureVisible(); } }
private void NavigateExplorerTreeNode(object sender, TreeNodeNavigateCodeEventArgs e) { var declaration = e.Declaration; if (declaration != null) { VBE.SetSelection(declaration.QualifiedName.QualifiedModuleName.Project, declaration.Selection, declaration.QualifiedName.QualifiedModuleName.Component.Name); } }