Examples of ITimed


Examples of org.jbpm.ui.common.model.ITimed

        figure.setRoutingConstraint(constructFigureBendpointList());
        if (transition.getSource() instanceof Decision) {
            figure.setLabelText(transition.getName());
        }
        if (transition.getSource() instanceof ITimed && transition.getName().equals(PluginConstants.TIMER_TRANSITION_NAME)) {
          ITimed state = (ITimed) transition.getSource();
            figure.setLabelText(state.getDuration().toString());
        }
      boolean exclusive = getModel().getSource().isExclusive() && getModel().getSource().getLeavingTransitions().size() > 1;
        figure.setExclusive(exclusive);
      if (getModel().getSource() instanceof Decision) {
            Decision decision = (Decision) getModel().getSource();
View Full Code Here

Examples of org.jbpm.ui.common.model.ITimed

                Decision decision = (Decision) transition.getSource();
                IDecisionProvider provider = CustomizationRegistry.getProvider(decision);
                provider.transitionRenamed(decision, (String) evt.getOldValue(), (String) evt.getNewValue());
            }
            if (transition.getSource() instanceof ITimed) {
                ITimed state = (ITimed) transition.getSource();
                String labelText = state.timerExist() ? state.getDuration().toString() : "";
                getFigure().setLabelText(labelText);
                refreshVisuals();
            }
        } else if (PROPERTY_TIMER_DURATION.equals(messageId)) {
            Transition transition = getModel();
            if (transition.getName().equals(PluginConstants.TIMER_TRANSITION_NAME)) {
              ITimed state = (ITimed) transition.getSource();
                getFigure().setLabelText(state.getDuration().toString());
                refreshVisuals();
            }
        } else if (NODE_CHILDS_CHANGED.equals(messageId)) {
            refreshChildren();
        }
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.