mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-98393 Bring focus into Inspect window after it is opened (so it can be browsed right away)
This commit is contained in:
@@ -22,6 +22,7 @@ import com.intellij.debugger.impl.DebuggerStateManager;
|
||||
import com.intellij.debugger.ui.impl.watch.NodeDescriptorImpl;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.DialogWrapper;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
@@ -81,4 +82,10 @@ public class InspectDialog extends DialogWrapper implements DebuggerContextListe
|
||||
close(CANCEL_EXIT_CODE);
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public JComponent getPreferredFocusedComponent() {
|
||||
return myInspectView.getInspectTree();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user