Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        public void FocusComponent(Component component, bool activateDiagramTab = true)
        {
            Diagram diagram = ModelIterator.GetDiagramForComponent(component);

            Current.MainWindow.FocusComponent(diagram, component, activateDiagramTab);
        }