mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE in embedded mode
This commit is contained in:
+5
@@ -1559,6 +1559,11 @@ public class DocumentationComponent extends JPanel implements Disposable, DataPr
|
||||
super("Open as Tool Window");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
e.getPresentation().setEnabledAndVisible(myToolwindowCallback != null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
myToolwindowCallback.run();
|
||||
|
||||
Reference in New Issue
Block a user