Package org.eclipse.graphiti.mm

Examples of org.eclipse.graphiti.mm.Property


    return bo != null && bo instanceof SubProcess;
  }

  @Override
  public IReason updateNeeded(IUpdateContext context) {
    Property triggerProperty = Graphiti.getPeService().getProperty(context.getPictogramElement(),
            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

TOP

Related Classes of org.eclipse.graphiti.mm.Property

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.