mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-148408 Raise exception during debugging - only enable in top frame
This commit is contained in:
@@ -122,7 +122,8 @@ public class ThrowExceptionAction extends DebuggerAction {
|
||||
}
|
||||
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
boolean enable = PopFrameAction.getStackFrame(e) != null;
|
||||
JavaStackFrame stackFrame = PopFrameAction.getStackFrame(e);
|
||||
boolean enable = stackFrame != null && stackFrame.getDescriptor().getUiIndex() == 0;
|
||||
|
||||
if (ActionPlaces.isMainMenuOrActionSearch(e.getPlace()) || ActionPlaces.DEBUGGER_TOOLBAR.equals(e.getPlace())) {
|
||||
e.getPresentation().setEnabled(enable);
|
||||
|
||||
Reference in New Issue
Block a user