Skip to content

Instantly share code, notes, and snippets.

@sebastianfrelle
Created March 24, 2017 20:28
Show Gist options
  • Save sebastianfrelle/b56283790bba36e46e0efaa9e9a95fd2 to your computer and use it in GitHub Desktop.
Save sebastianfrelle/b56283790bba36e46e0efaa9e9a95fd2 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