Created
March 24, 2017 20:28
-
-
Save sebastianfrelle/b56283790bba36e46e0efaa9e9a95fd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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