Examples of IReason


Examples of org.eclipse.graphiti.features.IReason

          (eu.admire.dispel.containers.Package)
          getBusinessObjectForPictogramElement(
              context.getPictogramElement());
   
      //Check we have all PEs
      IReason ret = checkNoStatementsAdded(pck);
      if (!ret.toBoolean()) {
        //Check nothing has been removed
        ret = checkNoShapesRemoved();
      }

      return ret;
View Full Code Here

Examples of org.eclipse.graphiti.features.IReason

     * @return True if there were statements not in the graph
     */
    private IReason checkNoStatementsAdded(
        eu.admire.dispel.containers.Package pck) {
     
      IReason ret = Reason.createFalseReason();
     
      for (Statement s : pck.getStatements()) {

        if (s instanceof LocalVariableStatement) {
          LocalVariableStatement lvs = (LocalVariableStatement) s;
View Full Code Here

Examples of org.eclipse.graphiti.features.IReason

      for (Anchor anchor : gatewayShape.getAnchors()) {
        for (Connection connection : anchor.getIncomingConnections() ) {
          IUpdateContext updateCtx = new UpdateContext(connection);
          IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
          if (updateFeature != null) {
            IReason ret = updateFeature.updateNeeded(updateCtx);
            if (ret.toBoolean())
              return ret;
          }
        }
        for (Connection connection : anchor.getOutgoingConnections() ) {
          IUpdateContext updateCtx = new UpdateContext(connection);
          IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
          if (updateFeature != null) {
            IReason ret = updateFeature.updateNeeded(updateCtx);
            if (ret.toBoolean())
              return ret;
          }
        }
      }
     
View Full Code Here

Examples of org.eclipse.graphiti.features.IReason

            TRIGGERED_BY_EVENT);
    if (triggerProperty == null)
      return Reason.createFalseReason();
    SubProcess process = (SubProcess) getBusinessObjectForPictogramElement(context.getPictogramElement());
    boolean changed = Boolean.parseBoolean(triggerProperty.getValue()) != process.isTriggeredByEvent();
    IReason reason = changed ? Reason.createTrueReason("Trigger property changed") : Reason.createFalseReason();
    return reason;
  }
View Full Code Here

Examples of org.eclipse.graphiti.features.IReason

        return Reason.createFalseReason();
      }

      StartEvent event = (StartEvent) getBusinessObjectForPictogramElement(element);
      boolean interrupting = Boolean.parseBoolean(prop);
      IReason reason = event.isIsInterrupting() == interrupting ? Reason.createFalseReason() : Reason
          .createTrueReason();
      return reason;
    }
View Full Code Here

Examples of org.eclipse.graphiti.features.IReason

  public IReason updateNeeded(IUpdateContext context) {
    String cancelProperty = Graphiti.getPeService().getPropertyValue(context.getPictogramElement(),
            BOUNDARY_EVENT_CANCEL);
    BoundaryEvent event = (BoundaryEvent) getBusinessObjectForPictogramElement(context.getPictogramElement());
    boolean changed = Boolean.parseBoolean(cancelProperty) != event.isCancelActivity();
    IReason reason = changed ? Reason.createTrueReason("Boundary type changed") : Reason.createFalseReason();
    return reason;
  }
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.