Package org.tuba.spatschorke.diploma.representation.ecoretoolsdiagram

Examples of org.tuba.spatschorke.diploma.representation.ecoretoolsdiagram.EcoreToolsGMFDiagram


      IArtefactRepresentation representation, Configuration configuration) {
    if (representation == null
        || !EcoreToolsGMFDiagram.TYPE.equals(representation.getType()))
      return null;

    EcoreToolsGMFDiagram diagramRepr = (EcoreToolsGMFDiagram) representation;
    final Diagram diagram = diagramRepr.getDiagram();

    Display.getDefault().syncExec(new Runnable() {
      @Override
      public void run() {
        LayoutService.getInstance().layout(diagram, LayoutType.DEFAULT);
      }
    });

    return new EcoreToolsGMFDiagram(diagram);
  }
View Full Code Here


      return null;

    EcoreToolsGMFDiagramURI diagramURIRepresentation = (EcoreToolsGMFDiagramURI) representation;
    Diagram diagram = DiagramLoader.getDiagram(diagramURIRepresentation
        .getDiagramURI());
    return new EcoreToolsGMFDiagram(diagram);
  }
View Full Code Here

      IArtefactRepresentation representation, Configuration configuration) {
    if (representation == null
        || !EcoreToolsGMFDiagram.TYPE.equals(representation.getType()))
      return null;

    EcoreToolsGMFDiagram diagramRepr = (EcoreToolsGMFDiagram) representation;
    Diagram diagram = diagramRepr.getDiagram();

    ConfigurationProvider cP = new ConfigurationProvider();
    cP.extractContent(configuration);

    List<String> namePattern = cP.getNamePattern();
    boolean andMatching = cP.isAndMatching();

    if (namePattern == null)
      return representation;

    DiagramExecuter
        .execute(new Execution(diagram, namePattern, andMatching));
    return new EcoreToolsGMFDiagram(diagram);
  }
View Full Code Here

      IArtefactRepresentation representation, Configuration configuration) {
    if (representation == null
        || !EcoreToolsGMFDiagram.TYPE.equals(representation.getType()))
      return null;

    EcoreToolsGMFDiagram diagramRepr = (EcoreToolsGMFDiagram) representation;
    org.eclipse.gmf.runtime.notation.Diagram gmfDiagram = diagramRepr
        .getDiagram();

    Diagram diagram = new Diagram();

    for (Object object : gmfDiagram.getChildren()) {
View Full Code Here

TOP

Related Classes of org.tuba.spatschorke.diploma.representation.ecoretoolsdiagram.EcoreToolsGMFDiagram

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.