diff options
author | Matthias Tichy | 2019-10-07 12:26:46 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2019-10-07 12:26:46 +0000 |
commit | 100e158647f1f0ef852b691680001dcaa82dc7fe (patch) | |
tree | b14bccd0918da38a2136b8d5e91b9ce7f186aac5 | |
parent | e6cc037be24e4018f34609e0934ac83c13a8d267 (diff) | |
parent | be6a916a9d7e98ebec537bef06387bdc1e317413 (diff) | |
download | org.eclipse.emft.henshin-100e158647f1f0ef852b691680001dcaa82dc7fe.tar.gz org.eclipse.emft.henshin-100e158647f1f0ef852b691680001dcaa82dc7fe.tar.xz org.eclipse.emft.henshin-100e158647f1f0ef852b691680001dcaa82dc7fe.zip |
Merge "fix for error message at the end of a debugging session if there is no match"
-rw-r--r-- | plugins/org.eclipse.emf.henshin.interpreter/src/org/eclipse/emf/henshin/interpreter/matching/conditions/DebugApplicationCondition.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.henshin.interpreter/src/org/eclipse/emf/henshin/interpreter/matching/conditions/DebugApplicationCondition.java b/plugins/org.eclipse.emf.henshin.interpreter/src/org/eclipse/emf/henshin/interpreter/matching/conditions/DebugApplicationCondition.java index a2c2733e3..364ab0e24 100644 --- a/plugins/org.eclipse.emf.henshin.interpreter/src/org/eclipse/emf/henshin/interpreter/matching/conditions/DebugApplicationCondition.java +++ b/plugins/org.eclipse.emf.henshin.interpreter/src/org/eclipse/emf/henshin/interpreter/matching/conditions/DebugApplicationCondition.java @@ -226,8 +226,7 @@ public class DebugApplicationCondition extends ApplicationCondition { // initialize the domain slot if (!currentSlot.initialize(currentVariable, graph)) { - throw new IllegalStateException( - "tried to initialize slot with empty domain" + toString()); + //this can happen and is not a problem } if (debugTarget != null) { @@ -487,7 +486,7 @@ public class DebugApplicationCondition extends ApplicationCondition { // update the debug state (current index does not change) updateDebugState(DebugLevel.VALUE, currentVariableIndex, ConstraintType.NONE, -1); - + break; case VALUE: // go to the "type" constraint type as it is always the first constraint. @@ -1580,7 +1579,7 @@ public void stepReturn() throws DebugException { public <U> boolean checkForChange(Object a, Object b) { // TODO: Check that a and b are of same type in method declaration // if we are at DebugLevel.NONE or the suspendCondition is met we stop stepping - if (currentDebugLevel == DebugLevel.NONE || a != b) { + if (currentDebugLevel == DebugLevel.NONE || a != b || currentDebugState == DebugState.TERMINATED_TRUE || currentDebugState == DebugState.TERMINATED_FALSE) { // suspend application when one ore more of the two conditions are met suspendApplication(); // gets assigned to the shouldStep variable in stepOver() |