GP-0: Fix control service.

This commit is contained in:
Dan 2023-12-06 10:11:04 -05:00
parent f9103016b1
commit 0e826aa1c7
2 changed files with 42 additions and 26 deletions

View file

@ -90,6 +90,14 @@ public enum ControlMode {
return false;
}
@Override
public ControlMode modeOnChange(DebuggerCoordinates coordinates) {
if (coordinates.isAliveAndPresent()) {
return this;
}
return getAlternative(coordinates);
}
@Override
public boolean isSelectable(DebuggerCoordinates coordinates) {
return coordinates.isAlive();
@ -151,6 +159,14 @@ public enum ControlMode {
return false;
}
@Override
public ControlMode modeOnChange(DebuggerCoordinates coordinates) {
if (coordinates.isAliveAndPresent()) {
return this;
}
return getAlternative(coordinates);
}
@Override
public boolean isSelectable(DebuggerCoordinates coordinates) {
return coordinates.isAlive();