Examples of clearMsgs()


Examples of org.openbp.common.generic.msgcontainer.StandardMsgContainer.clearMsgs()

      // 4. Add the cloned object to the dummy process
      // 5. Re-establish the object references (now based on the elements of the dummy process)
      //    If this fails, the object will be removed from the dummy process again.

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

      for (FigureEnumeration fe = workspaceView.selectionElements(); fe.hasMoreElements();)
      {
        Figure next = fe.nextFigure();
View Full Code Here

Examples of org.openbp.common.generic.msgcontainer.StandardMsgContainer.clearMsgs()

          if (! msgContainer.isEmpty())
          {
            // One of the end points of the link is not present in the copied set,
            // so remove the link from the dummy process again.
            process.removeControlLink(link);
            msgContainer.clearMsgs();
          }
        }

        else if (next instanceof ParamConnection)
        {
View Full Code Here

Examples of org.openbp.common.generic.msgcontainer.StandardMsgContainer.clearMsgs()

          if (! msgContainer.isEmpty())
          {
            // One of the end points of the link is not present in the copied set,
            // so remove the link from the dummy process again.
            process.removeDataLink(link);
            msgContainer.clearMsgs();
          }
        }
      }

      // Re-establish inter-object links and links to other items
View Full Code Here

Examples of org.openbp.common.generic.msgcontainer.StandardMsgContainer.clearMsgs()

   * data that was created by the {@link #getCopyData} method.
   */
  public void paste(Transferable content)
  {
    StandardMsgContainer msgContainer = ModelConnector.getInstance().getMsgContainer();
    msgContainer.clearMsgs();

    try
    {
      boolean success = false;

View Full Code Here

Examples of org.openbp.common.generic.msgcontainer.StandardMsgContainer.clearMsgs()

    finally
    {
      if (! msgContainer.isEmpty())
      {
        System.err.println(msgContainer.toString());
        msgContainer.clearMsgs();
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.openbp.common.generic.msgcontainer.StandardMsgContainer.clearMsgs()

        if (sb.length() != 0)
          sb.append("\n");
        sb.append(errorMsg);
      }

      msgContainer.clearMsgs();
      displayErrorMsg(sb.toString());

      return ret;
    }
View Full Code Here

Examples of org.openbp.common.generic.msgcontainer.StandardMsgContainer.clearMsgs()

  public void initialize(CoreModule coreModule)
  {
    modelMgr = coreModule.getModelMgr();

    StandardMsgContainer msgContainer = modelMgr.getMsgContainer();
    msgContainer.clearMsgs();

    // Load all models
    modelMgr.readModels();

    // Initialize the models
View Full Code Here

Examples of org.openbp.common.generic.msgcontainer.StandardMsgContainer.clearMsgs()

    // Print any errors to stderr
    String errMsg = msgContainer.toString();
    if (errMsg != null && ! errMsg.equals(""))
    {
      msgContainer.clearMsgs();
      System.err.println(errMsg);
      System.err.println();
    }

    fireEvent(new ModelConnectorEvent(ModelConnectorEvent.MODELS_LOADED));
View Full Code Here

Examples of org.openbp.common.generic.msgcontainer.StandardMsgContainer.clearMsgs()

    for (Iterator it = msgContainer.getMsgs(); it.hasNext();)
    {
      MsgItem msgItem = (MsgItem) it.next();
      LogUtil.error(getClass(), msgItem.getFormattedMsgWithSource());
    }
    msgContainer.clearMsgs();

    LogUtil.info(getClass(), "Model load complete.");
  }

  /**
 
View Full Code Here

Examples of org.openbp.common.generic.msgcontainer.StandardMsgContainer.clearMsgs()

  {
    if (singleInstance != null)
      return singleInstance;

    StandardMsgContainer msgContainer = owner.getModelMgr().getMsgContainer();
    msgContainer.clearMsgs();

    Object handler = createInstance();

    if (! msgContainer.isEmpty())
    {
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.