mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 06:51:17 +07:00
CommandProcessor: assertion improved
This commit is contained in:
+7
-1
@@ -57,6 +57,11 @@ public class CommandProcessorImpl extends CommandProcessorEx {
|
||||
myUndoConfirmationPolicy = undoConfirmationPolicy;
|
||||
myDocument = document;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "'" + myName + "', group: '" + myGroupId + "'";
|
||||
}
|
||||
}
|
||||
|
||||
private CommandDescriptor myCurrentCommand = null;
|
||||
@@ -219,7 +224,8 @@ public class CommandProcessorImpl extends CommandProcessorEx {
|
||||
}
|
||||
|
||||
public void leaveModal() {
|
||||
CommandLog.LOG.assertTrue(myCurrentCommand == null);
|
||||
CommandLog.LOG.assertTrue(myCurrentCommand == null, "Command must not run: " + String.valueOf(myCurrentCommand));
|
||||
|
||||
myCurrentCommand = myInterruptedCommands.pop();
|
||||
if (myCurrentCommand != null) {
|
||||
fireCommandStarted();
|
||||
|
||||
Reference in New Issue
Block a user