Package org.eclipse.sirius.viewpoint

Examples of org.eclipse.sirius.viewpoint.DRepresentation


    IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
        .getActiveEditor();

    if (editor instanceof DialectEditor) {
      DialectEditor dialectEditor = (DialectEditor)editor;
      DRepresentation representation = dialectEditor.getRepresentation();
      if (representation instanceof DDiagram) {
        DDiagram diagram = (DDiagram)representation;
        List<Layer> layers = diagram.getActivatedLayers();
        for (Layer layer : layers) {
          if ("PAR ValueBinding Layer".equals(layer.getName()))
View Full Code Here


  }

  public List<EObject> getValidsForSysmlDiagram(final Element element,
      final DSemanticDecorator containerView) {
    // Get representation
    DRepresentation representation = null;
    if (containerView instanceof DRepresentation) {
      representation = (DRepresentation)containerView;
    } else if (containerView instanceof DDiagramElement) {
      representation = ((DDiagramElement)containerView).getParentDiagram();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.sirius.viewpoint.DRepresentation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.