mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
pause action restored in java debug views [rev by peter]
This commit is contained in:
@@ -29,6 +29,11 @@ public class PauseActionHandler extends DebuggerActionHandler {
|
||||
(DebuggerManagerEx.getInstanceEx(project)).getContext().getDebuggerSession().pause();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isHidden(@NotNull Project project, AnActionEvent event) {
|
||||
return DebuggerManagerEx.getInstanceEx(project).getContext().getDebuggerSession() == null;
|
||||
}
|
||||
|
||||
public boolean isEnabled(@NotNull final Project project, final AnActionEvent event) {
|
||||
final DebuggerSession debuggerSession = DebuggerManagerEx.getInstanceEx(project).getContext().getDebuggerSession();
|
||||
return debuggerSession != null && !debuggerSession.getProcess().isPausePressed() &&
|
||||
|
||||
Reference in New Issue
Block a user