mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
-Didea.ui.debug.mode=true to switch ON at startup both 'UI Inspector' and 'Focus Debugger'
Signed-off-by: Vassiliy.Kudryashov <Vassiliy.Kudryashov@jetbrains.com>
This commit is contained in:
@@ -37,7 +37,7 @@ public class FocusDebuggerAction extends AnAction implements DumbAware {
|
||||
private FocusDrawer myFocusDrawer;
|
||||
|
||||
public FocusDebuggerAction() {
|
||||
if (Boolean.getBoolean("focus.debug")) {
|
||||
if (Boolean.getBoolean("idea.ui.debug.mode")) {
|
||||
ApplicationManager.getApplication().invokeLater(() -> actionPerformed(null));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ import com.intellij.notification.Notifications;
|
||||
import com.intellij.notification.NotificationsManager;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.actionSystem.*;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.project.DumbAware;
|
||||
import com.intellij.openapi.roots.ui.configuration.actions.IconWithTextAction;
|
||||
import com.intellij.openapi.ui.DialogWrapper;
|
||||
@@ -80,6 +81,12 @@ public class UiInspectorAction extends ToggleAction implements DumbAware {
|
||||
|
||||
private UiInspector myInspector;
|
||||
|
||||
public UiInspectorAction() {
|
||||
if (Boolean.getBoolean("idea.ui.debug.mode")) {
|
||||
ApplicationManager.getApplication().invokeLater(() -> setSelected(null, true));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSelected(AnActionEvent e) {
|
||||
return myInspector != null;
|
||||
|
||||
Reference in New Issue
Block a user