Skip to content

Instantly share code, notes, and snippets.

@sebastianfrelle
Created March 24, 2017 20:28
Show Gist options
  • Save sebastianfrelle/626544072ea7088310742e40b9598bac to your computer and use it in GitHub Desktop.
Save sebastianfrelle/626544072ea7088310742e40b9598bac to your computer and use it in GitHub Desktop.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException
{
final Transition transition = getTransition(event.getApplicationContext());
if (isEnabled(transition))
{
EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(transition);
if (domain != null)
{
domain.getCommandStack().execute(new FireTransitionCommand(domain, transition));
} else {
fire(transition);
}
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment