1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

catch enable/disable cli commands

This commit is contained in:
Alain Magloire 2003-01-24 15:54:47 +00:00
parent 58505ff006
commit 04f6794cbf

View file

@ -46,6 +46,7 @@ public class CLIProcessor {
session.fireEvent(event);
} else if (isSettingBreakpoint(operation) ||
isSettingWatchpoint(operation) ||
isEnableBreakpoint(operation) ||
isDeletingBreakpoint(operation)) {
// We know something change, we just do not know what.
// So the easiest way is to let the top layer handle it.
@ -112,4 +113,15 @@ public class CLIProcessor {
return isDelete;
}
boolean isEnableBreakpoint(String operation) {
boolean isChange = false;
/* changing breaks: enable, disable */
if ((operation.equals("dis") || operation.equals("disa") ||
(operation.startsWith("disa") && "disable".indexOf(operation) != -1)) ||
(operation.equals("en") || (operation.startsWith("en") && "enable".indexOf(operation) != -1))) {
isChange = true;
}
return isChange;
}
}