public override void Execute(object parameter = null) { PSMClass psmClass = ((PSMClass)ScopeObject); if (psmClass.IsStructuralRepresentative) { Diagram diagram = ModelIterator.GetDiagramForComponent(psmClass.RepresentedClass); Current.MainWindow.FocusComponent(diagram, psmClass.RepresentedClass); } }
public void FocusComponent(Component component, bool activateDiagramTab = true) { Diagram diagram = ModelIterator.GetDiagramForComponent(component); Current.MainWindow.FocusComponent(diagram, component, activateDiagramTab); }