1

我正在使用 Platform SDK 开发一个 IntelliJ 插件。

我需要访问 IDE 的 UI Swing 元素以获取它们的屏幕位置。

我知道谁为文件编辑器执行此操作:

FileEditor currentEditor = FileEditorManager.getInstance(currentProject).getSelectedEditor();
JComponent entryPoint = currentEditor.getComponent();
Point p = entryPoint.getLocationOnScreen();

但是我如何才能访问其他 UI 组件,例如菜单栏或项目窗口?是否有任何包含所有 UI 元素的父对象?

4

0 回答 0