IDEA-98393 Bring focus into Inspect window after it is opened (so it can be browsed right away)

This commit is contained in:
Egor.Ushakov
2014-04-01 15:37:24 +04:00
parent d640d905a7
commit a18ec2870c
@@ -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();
}
}