mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-1691 "Watches" window saves state only when debug session is active
This commit is contained in:
+8
-1
@@ -44,7 +44,14 @@ public abstract class XWatchesTreeActionBase extends AnAction {
|
||||
}
|
||||
|
||||
public void update(final AnActionEvent e) {
|
||||
boolean enabled = isEnabled(e);
|
||||
final XDebuggerTree tree = XDebuggerTree.getTree(e);
|
||||
boolean enabled;
|
||||
if (tree == null || tree.getSession().isStopped()) {
|
||||
enabled = false;
|
||||
}
|
||||
else {
|
||||
enabled = isEnabled(e);
|
||||
}
|
||||
e.getPresentation().setEnabled(enabled);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user