Package org.openbp.core.model.item.process

Examples of org.openbp.core.model.item.process.ProcessItem.maintainReferences()


      ExceptionUtil.printTrace(e);
      return;
    }

    // Make sure that the parent-child links and control and data links are valid
    clonedProcess.maintainReferences(ModelObject.RESOLVE_LOCAL_REFS);

    processQualifier = clonedProcess.getQualifier();

    drawing = new ProcessDrawing(clonedProcess, this);
    drawing.setReadOnly(readonly);
View Full Code Here


      }

      // Re-establish inter-object links and links to other items
      // and remove links to figures to make the gc work
      // TODO Fix 4 This seems to produce some maintainReferences error: "Cannot resolve ... in Model /System"
      process.maintainReferences(ModelObject.RESOLVE_GLOBAL_REFS | ModelObject.RESOLVE_LOCAL_REFS | ModelObject.UNLINK_FROM_REPRESENTATION);

      if (copyFlavor != null && (process.getNodes().hasNext() || process.getTextElements().hasNext()))
      {
        Transferable ret = new SimpleTransferable(process, copyFlavor);
View Full Code Here

    // We will copy to our target process
    ProcessDrawing drawing = (ProcessDrawing) workspaceView.drawing();
    ProcessItem target = drawing.getProcess();

    // Make sure the references names of the target are up to date
    target.maintainReferences(ModelObject.SYNC_LOCAL_REFNAMES | ModelObject.SYNC_GLOBAL_REFNAMES);

    // We need to make the names in the source process unique with respect to our target process
    NamedObjectCollectionUtil.createUniqueNames(source.getNodeList(), target.getNodeList());
    NamedObjectCollectionUtil.createUniqueNames(source.getTextElementList(), target.getTextElementList());
    NamedObjectCollectionUtil.createUniqueNames(source.getDataLinkList(), target.getDataLinkList());
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.