Package org.openbp.core.model

Examples of org.openbp.core.model.ModelQualifier


                int ret = JMsgBox.show(null, msg, JMsgBox.TYPE_YESNO);
                if (ret != JMsgBox.TYPE_YES)
                  return;
              }

              ModelQualifier qualifier = new ModelQualifier(process);
              ApplicationUtil.waitCursorOn();
              try
              {
                ImageExporter imageExporter = createImageExporter(qualifier);
                imageExporter.writeImage(type, fileName);
View Full Code Here


        {
          object = model.resolveObjectRef(objectRef, itemType);
        }
        else
        {
          ModelQualifier qualifier = new ModelQualifier(objectRef);
          qualifier.setItemType(itemType);
          object = ModelConnector.getInstance().getItemByQualifier(qualifier, false);
        }
      }
      catch (ModelException e)
      {
      }
    }

    ItemTreeState state = new ItemTreeState();

    Model currentModel = null;
    if (object != null)
    {
      // Open the current object
      currentModel = object.getOwningModel();
    }
    else
    {
      // Open the current model
      if (model != null)
      {
        currentModel = model;
      }

      if (openSystemModel)
      {
        // Open the System model
        currentModel = ModelConnector.getInstance().getModelByQualifier(CoreConstants.SYSTEM_MODEL_QUALIFIER);
      }
    }
    if (currentModel != null)
    {
      state.addExpandedQualifier(currentModel.getQualifier());
    }

    // Select the previously selected initial nodes if present
    if (object != null)
    {
      state.addSelectedQualifier(object.getQualifier());
    }
    else if (objectRef != null)
    {
      state.addSelectedQualifier(new ModelQualifier(objectRef));
    }
    else
    {
      if (currentModel != null)
      {
View Full Code Here

  void setHaltedPosition(ModelQualifier newPos)
  {
    if (haltedPosition != null)
    {
      // Clear the current position, so the update will display the current object in its usual state.
      ModelQualifier oldPosition = haltedPosition;
      haltedPosition = null;

      // Invalidate the current position (will clear the current position marker)
      // This will also enforce a rebuild of the content of a tag.
      fireEvent(new QualifierEvent(DebuggerPlugin.this, "modeler.view.invalidate", oldPosition));
    }

    // Update the position
    haltedPosition = newPos;

    // Activate or deactivator for the decorator for the current position
    if (haltedPosition != null)
    {
      activateStepDecorator();
    }
    else
    {
      deactivateStepDecorator();
    }

    if (newPos != null)
    {
      // First, make sure the process the new current position refers to is loaded
      ModelQualifier processQualifier = new ModelQualifier(newPos);
      processQualifier.setItemType(ItemTypes.PROCESS);
      processQualifier.setObjectPath(null);
      fireEvent(new OpenEvent(DebuggerPlugin.this, "open.modeler", processQualifier));

      // Invalidate the new current position (will display the current position marker)
      // This will also enforce a rebuild of the content of a tag.
      fireEvent(new QualifierEvent(DebuggerPlugin.this, "modeler.view.invalidate", newPos));
View Full Code Here

  {
    if (step)
    {
      // If we are debugging the process or we are using the internal browser,
      // we have to open the process in the modeler first
      ModelQualifier processQualifier = initialNode.getProcess().getQualifier();
      fireEvent(new OpenEvent(this, "open.modeler", processQualifier));
    }

    // The open.modeler event will be processed asynchonously,
    // so we will also put the request to the web browser to display the URL in the event queue,
View Full Code Here

TOP

Related Classes of org.openbp.core.model.ModelQualifier

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.