if (transition.getSource() instanceof Decision) {
getFigure().setLabelText(transition.getName());
refreshVisuals();
// update decision configuration
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);