Examples of ModelHandler


Examples of net.hydromatic.optiq.model.ModelHandler

            (OptiqConnectionImpl) connection_;
        super.onConnectionInit(connection);
        final String model = connection.config().model();
        if (model != null) {
          try {
            new ModelHandler(connection, model);
          } catch (IOException e) {
            throw new SQLException(e);
          }
        }
      }
View Full Code Here

Examples of net.hydromatic.optiq.model.ModelHandler

            (OptiqConnectionImpl) connection_;
        super.onConnectionInit(connection);
        final String model = connection.config().model();
        if (model != null) {
          try {
            new ModelHandler(connection, model);
          } catch (IOException e) {
            throw new SQLException(e);
          }
        }
      }
View Full Code Here

Examples of net.hydromatic.optiq.model.ModelHandler

            (OptiqConnectionImpl) connection_;
        super.onConnectionInit(connection);
        final String model = connection.config().model();
        if (model != null) {
          try {
            new ModelHandler(connection, model);
          } catch (IOException e) {
            throw new SQLException(e);
          }
        }
        connection.init();
View Full Code Here

Examples of net.hydromatic.optiq.model.ModelHandler

            (OptiqConnectionImpl) connection_;
        super.onConnectionInit(connection);
        final String model = connection.config().model();
        if (model != null) {
          try {
            new ModelHandler(connection, model);
          } catch (IOException e) {
            throw new SQLException(e);
          }
        }
        connection.init();
View Full Code Here

Examples of org.eclipse.bpmn2.modeler.core.ModelHandler

  @Override
    public Object[] create(ICreateContext context) {
    Participant p = null;
   
    try {
          ModelHandler mh = ModelHandlerLocator.getModelHandler(getDiagram().eResource());
          p = mh.addParticipant();
          p.setName("Pool nr " + index++);
        } catch (IOException e) {
          Activator.logError(e);
        }
       
View Full Code Here

Examples of org.eclipse.bpmn2.modeler.core.ModelHandler

  private void modifyModelStructure(IMoveShapeContext context) {
    Lane movedLane = getMovedLane(context);
    Participant targetParticipant = (Participant) getBusinessObjectForPictogramElement(context.getTargetContainer());

    try {
      ModelHandler handler = ModelHandler.getInstance(getDiagram());
      handler.moveLane(movedLane, targetParticipant);
    } catch (IOException e) {
      Activator.logError(e);
    }

    Process process = targetParticipant.getProcessRef();
View Full Code Here

Examples of org.eclipse.bpmn2.modeler.core.ModelHandler

  private void modifyModelStructure(IMoveShapeContext context) {
    try {
      Participant targetParticipant = (Participant) getBusinessObjectForPictogramElement(context
          .getTargetContainer());
      ModelHandler handler = ModelHandler.getInstance(getDiagram());
      Lane movedLane = getMovedLane(context);
      handler.moveLane(movedLane, targetParticipant);
      Participant internalParticipant = handler.getParticipant(getDiagram());
      LaneSet laneSet = null;
      for (LaneSet set : internalParticipant.getProcessRef().getLaneSets()) {
        if (set.getLanes().contains(movedLane)) {
          laneSet = set;
          break;
View Full Code Here

Examples of org.eclipse.bpmn2.modeler.core.ModelHandler

    Lane movedLane = getMovedLane(context);
    Participant sourceParticipant = (Participant) getBusinessObjectForPictogramElement(context.getSourceContainer());
    Participant internalParticipant = null;

    try {
      ModelHandler handler = ModelHandler.getInstance(getDiagram());
      internalParticipant = handler.getInternalParticipant();
      handler.moveLane(movedLane, internalParticipant);
    } catch (IOException e) {
      Activator.logError(e);
    }

    LaneSet laneSet = null;
View Full Code Here

Examples of org.eclipse.bpmn2.modeler.core.ModelHandler

  private void modifyModelStructure(IMoveShapeContext context) {
    Lane movedLane = getMovedLane(context);
    Lane toLane = getTargetLane(context);

    try {
      ModelHandler handler = ModelHandler.getInstance(getDiagram());
      Participant participant = handler.getParticipant(toLane);
      handler.moveLane(movedLane, participant);
    } catch (IOException e) {
      Activator.logError(e);
    }

    Participant sourceParticipant = (Participant) getBusinessObjectForPictogramElement(context.getSourceContainer());
View Full Code Here

Examples of org.eclipse.bpmn2.modeler.core.ModelHandler

  protected void decorateContainerRect(RoundedRectangle containerRect) {
  }

  protected void addedFromImport(ChoreographyActivity choreography, ContainerShape choreographyContainer,
      IAddContext context) {
    ModelHandler mh = null;

    try {
      mh = ModelHandler.getInstance(getDiagram());
    } catch (IOException e) {
      Activator.logError(e);
      return;
    }

    List<Participant> participants = choreography.getParticipantRefs();
    List<BPMNShape> shapes = mh.getAll(BPMNShape.class);
    List<BPMNShape> filteredShapes = new ArrayList<BPMNShape>();
    BPMNShape choreoBpmnShape = null;

    for (BPMNShape shape : shapes) {
      if (shape.getBpmnElement().equals(choreography)) {
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.