mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ensure byte code viewer works in Project view, make focusable
IDEA-185007; IDEA-188549
This commit is contained in:
@@ -108,6 +108,10 @@ public class ByteCodeViewerComponent extends JPanel implements Disposable {
|
||||
public String getText() {
|
||||
return myEditor.getDocument().getText();
|
||||
}
|
||||
|
||||
public JComponent getEditorComponent() {
|
||||
return myEditor.getContentComponent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
|
||||
@@ -130,7 +130,7 @@ public class ShowByteCodeAction extends AnAction {
|
||||
return false;
|
||||
};
|
||||
|
||||
final JBPopup popup = JBPopupFactory.getInstance().createComponentPopupBuilder(component, editor.getComponent())
|
||||
final JBPopup popup = JBPopupFactory.getInstance().createComponentPopupBuilder(component, component.getEditorComponent())
|
||||
.setProject(project)
|
||||
.setDimensionServiceKey(project, ShowByteCodeAction.class.getName(), false)
|
||||
.setResizable(true)
|
||||
|
||||
Reference in New Issue
Block a user