Skip to content
Snippets Groups Projects
Commit eeaa6656 authored by Michael Leuschel's avatar Michael Leuschel
Browse files

provide feedback when execute with predicate failed

parent 8b72ecc3
No related branches found
No related tags found
No related merge requests found
......@@ -39,9 +39,14 @@ public class CustomPreconditionDialogHandler extends AbstractHandler implements
if (op == null)
return null;
try {
int hisSize = Animator.getAnimator().getHistory().size();
System.out.println("History Size = " + hisSize);
ExecuteOperationCommand
.executeOperation(Animator.getAnimator(), op);
// TODO: provide feedback when we cannot execute operation
if (Animator.getAnimator().getHistory().size() <= hisSize) {
Logger.notifyUser("Could not execute event "+ filtered.get(0).getName() + " with the additional predicate provided!");
}
} catch (ProBException e) {
e.notifyUserOnce();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment