Examples of Diagram


Examples of com.ktu.fd2.uml.Diagram

      if (!diagramsList.getDiagrams().isEmpty())
        return diagramsList.getDiagrams().toArray(parents);

    } else if (parentElement instanceof Diagram) {
      Diagram diag = (Diagram) parentElement;
      Object[] childs = new Object[diag.getDiagramAssociations()
          .getElements().size()];

      if (!diag.getDiagramAssociations().getElements().isEmpty())
        return diag.getDiagramAssociations().getElements().toArray(
            childs);
    }
//    } else if (parentElement instanceof AssociatedElement){
//      ArrayList<Object> mandatoryElements = ((AssociatedElement)parentElement).getMandatoryRelations();
//      ArrayList<Object> optionalElements = ((AssociatedElement)parentElement).getOptionalRelations();
View Full Code Here

Examples of com.sun.hotspot.igv.graph.Diagram

* @author Thomas Wuerthinger
*/
public class GraphViewerImplementation implements GraphViewer {

    public void view(InputGraph graph) {
        Diagram diagram = Diagram.createDiagram(graph, Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
        EditorTopComponent tc = new EditorTopComponent(diagram);
        tc.open();
        tc.requestActive();
    }
View Full Code Here

Examples of fd2.Diagram

        Messages.Fd2DiagramEditorUtil_CreateDiagramCommandLabel,
        Collections.EMPTY_LIST) {
      protected CommandResult doExecuteWithResult(
          IProgressMonitor monitor, IAdaptable info)
          throws ExecutionException {
        Diagram model = createInitialModel();
        attachModelToResource(model, modelResource);

        org.eclipse.gmf.runtime.notation.Diagram diagram = ViewService
            .createDiagram(model, DiagramEditPart.MODEL_ID,
                Fd2DiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
View Full Code Here

Examples of net.sourceforge.plantuml.core.Diagram

        System.out.println("getSource=>" + diagmarkup);
        SourceStringReader reader = new SourceStringReader(diagmarkup);
        int n = index == null ? 0 : Integer.parseInt(index);
        List<BlockUml> blocks = reader.getBlocks();
        BlockUml block = blocks.get(n);
        Diagram diagram = block.getDiagram();
        UmlSource umlSrc = diagram.getSource();
        String uml = umlSrc.getPlainString();
        System.out.println("uml=" + uml);

        // generate the response
        DiagramResponse dr = new DiagramResponse(response, getOutputFormat());
View Full Code Here

Examples of org.eclipse.dd.di.Diagram

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetOwningDiagram(Diagram newOwningDiagram, NotificationChain msgs) {
        Diagram oldOwningDiagram = owningDiagram;
        owningDiagram = newOwningDiagram;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    DiPackage.DIAGRAM_ELEMENT__OWNING_DIAGRAM, oldOwningDiagram, newOwningDiagram);
            if (msgs == null)
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.Diagram

        .getInstance().getDocumentProvider()
        .getDiagramDocument(anInput);
    if (document == null) {
      return StructuredSelection.EMPTY;
    }
    Diagram diagram = document.getDiagram();
    IFile file = WorkspaceSynchronizer.getFile(diagram.eResource());
    if (file != null) {
      OntoUML.diagram.navigator.OntoUMLNavigatorItem item = new OntoUML.diagram.navigator.OntoUMLNavigatorItem(
          diagram, file, false);
      return new StructuredSelection(item);
    }
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.Diagram

    final List decorators = viewId != null ? (List) allDecorators
        .get(viewId) : null;
    if (decorators == null || decorators.isEmpty() || diagram == null) {
      return;
    }
    final Diagram fdiagram = diagram;
    PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {

      public void run() {
        try {
          TransactionUtil.getEditingDomain(fdiagram).runExclusive(
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.Diagram

  private Collection getDiagramLinksByType(Collection diagrams, int visualID) {
    Collection result = new ArrayList();
    String type = OntoUML.diagram.part.OntoUMLVisualIDRegistry
        .getType(visualID);
    for (Iterator it = diagrams.iterator(); it.hasNext();) {
      Diagram nextDiagram = (Diagram) it.next();
      result.addAll(selectViewsByType(nextDiagram.getEdges(), type));
    }
    return result;
  }
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.Diagram

                "Incorrect document used: " + document + " instead of org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument", null)); //$NON-NLS-1$ //$NON-NLS-2$
      }
      IDiagramDocument diagramDocument = (IDiagramDocument) document;
      final Resource newResource = diagramDocument.getEditingDomain()
          .getResourceSet().createResource(newResoruceURI);
      final Diagram diagramCopy = (Diagram) EcoreUtil
          .copy(diagramDocument.getDiagram());
      try {
        new AbstractTransactionalCommand(
            diagramDocument.getEditingDomain(),
            NLS
                .bind(
                    OntoUML.diagram.part.Messages.OntoUMLDocumentProvider_SaveAsOperation,
                    diagramCopy.getName()), affectedFiles) {
          protected CommandResult doExecuteWithResult(
              IProgressMonitor monitor, IAdaptable info)
              throws ExecutionException {
            newResource.getContents().add(diagramCopy);
            return CommandResult.newOKCommandResult();
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.Diagram

                .getModelElement());
        if (diagramVID != OntoUML.diagram.edit.parts.ContainerEditPart.VISUAL_ID) {
          return CommandResult
              .newErrorCommandResult(OntoUML.diagram.part.Messages.OntoUMLNewDiagramFileWizard_IncorrectRootError);
        }
        Diagram diagram = ViewService
            .createDiagram(
                diagramRootElementSelectionPage
                    .getModelElement(),
                OntoUML.diagram.edit.parts.ContainerEditPart.MODEL_ID,
                OntoUML.diagram.part.OntoUMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.