Package org.openbp.core.model

Examples of org.openbp.core.model.ModelObject.maintainReferences()


          }
        }

        // Make sure the global reference names are up to date or else we may have trouble
        // saving the object (the ModelObjectValidator will try to rebuild the references from the names)
        mo.maintainReferences(ModelObject.SYNC_GLOBAL_REFNAMES | ModelObject.SYNC_LOCAL_REFNAMES);

        String title = mo.getName();
        String modelObjectTypeName = mo.getModelObjectTypeName();
        if (modelObjectTypeName != null)
        {
View Full Code Here


        ExceptionUtil.printTrace(e);
        return EVENT_CONSUMED;
      }

      // Make sure all subordinate objects refer to this object
      orig.maintainReferences(0);

      drawing.updateFigure();
      drawing.invalidate();
      workspaceView.checkDamage();
View Full Code Here

    ModelObject mo = (ModelObject) editedObject;

    StandardMsgContainer msgContainer = ModelConnector.getInstance().getMsgContainer();
    msgContainer.clearMsgs();

    mo.maintainReferences(ModelObject.VALIDATE_BASIC | ModelObject.RESOLVE_GLOBAL_REFS);
    checkNameUniqueness(mo, pb);

    // Print errors and return if any have been found
    if (! displayMsgContainer())
      return false;
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.