简体   繁体   English

如何在IntelliJ插件框架中使用ConfigurableUI类?

[英]How do I use the ConfigurableUI class in the IntelliJ plugin framework?

I've been browsing the intellij plugin documentation and cannot find a section where they explain how to build out the UI for configuring a plugin. 我一直在浏览intellij插件文档,但找不到一节来解释如何构建用于配置插件的UI。

I notice they have a ConfigurableUI class here 我注意到他们这里有一个ConfigurableUI类

How would I go setting up this class to add a simple SwingUI component into my plugin? 我将如何设置此类以将简单的SwingUI组件添加到插件中?

I've done a search in their docs repository for the class and couldn't find anything: https://github.com/JetBrains/intellij-sdk-docs 我已经在他们的文档存储库中搜索了该类,但找不到任何东西: https : //github.com/JetBrains/intellij-sdk-docs

在此处输入图片说明

Ideally, I'd like a new menu item in "Tools" with my plugin name, and when I click on it, it spawns a JFrame/JPanel or something that I built in the .UI file builder in Intellij. 理想情况下,我想在“工具”中使用插件名称作为新菜单项,当我单击它时,它会生成JFrame / JPanel或我在Intellij的.UI文件构建器中构建的东西。

Please see https://sites.google.com/site/malenkov/java/150403 for a reference of setting up configuration page. 请参阅https://sites.google.com/site/malenkov/java/150403 ,以获取设置配置页的参考。 You can find plenty of implementations of Configurable in IntelliJ Community sources 您可以在IntelliJ社区源代码中找到许多可配置的实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM