实现或修改 IntelliJ `AnAction`,并在 `plugin.xml` 中注册。将显示名称和说明写入消息资源文件,按需设置图标,并通过事件协程作用域启动挂起任务,避免同步处理阻塞 IDE。
- 为 IDE 菜单添加操作
- 修改操作注册或图标
- 整理操作名称和说明
将 Jewel Compose 界面嵌入 IntelliJ 工具窗口标签页或其他 Swing 面板,选择合适的桥接 API,将 Swing 主题设置传入 Compose,并连接组件与对话框。
Embed Jewel Compose UI in Swing.
实测评分 未实测
查看安装方法本技能介绍如何把使用 Jewel Compose 构建的界面嵌入 Swing。对于 IntelliJ Platform 工具窗口,可使用 addComposeTab(...);对于一般的 Swing 宿主,可使用 JewelComposePanel 等入口。在插件界面中,SwingBridgeTheme 会将 Swing 的颜色和文字设置传入 Compose。技能还介绍在需要时启用合成、从 Compose 获取宿主 Swing 组件,以及将文件选择器或对话框操作交给 Swing 处理。
当您想用 Compose 构建 IntelliJ 插件界面,并将其放入现有 Swing UI,或想在自定义 Swing 面板中显示 Jewel 界面时,可以使用本技能。它整理了两种 UI 系统交界处需要的设置,包括主题衔接、组件层级、尺寸调整,以及调用 Swing 对话框。
请确认目标 IntelliJ Platform 基准版本和 Jewel API 版本。手动启用合成以及无主题入口属于实验性路径。启用合成时,无限循环动画可能影响性能。
本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。
AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。
不计入评分。 由 AI(OpenAI Codex)于 2026年10月28日 评估。仅供参考,安装前请同时查看原文。
安装前可以查看交给 AI 代理的指令内容。
Embed Compose/Jewel into Swing with bridge primitives from ide-laf-bridge and foundation.
Tool window tab:
toolWindow.addComposeTab(tabDisplayName = "My Tab") {
SwingBridgeTheme {
MyToolWindowContent()
}
}
Generic Swing host:
val panel = JewelComposePanel {
MyPluginComposable()
}
Manual compositing enablement (non-toolwindow entrypoint):
enableNewSwingCompositing()
val panel = JewelComposePanel { MyPluginComposable() }
Pick the simplest valid entrypoint:
ToolWindow.addComposeTab(...).compose(...) / JewelComposePanel(...).composeWithoutTheme(...) / JewelComposeNoThemePanel(...).Default to themed entrypoints; use no-theme variants only when theme wrapping is intentionally external.
Call enableNewSwingCompositing() before attaching Compose content when needed.
Notes:
ToolWindow.addComposeTab(...) already does this internally.enableNewSwingCompositing() and no-theme entrypoints as advanced/experimental paths.Use SwingBridgeTheme for IntelliJ plugin UI:
Do not use standalone IntUiTheme for plugin-hosted Swing integration.
For bidirectional operations:
LocalComponent to get the host Swing component when APIs require Component.JFileChooser, etc.) from Compose callbacks.Treat this skill as Jewel-version scoped.
Before finishing:
SwingBridgeTheme (unless deliberately no-theme).LocalComponent.addComposeTab when applicable.ComposePanel wrappers.Read these source files when implementing:
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
实现或修改 IntelliJ `AnAction`,并在 `plugin.xml` 中注册。将显示名称和说明写入消息资源文件,按需设置图标,并通过事件协程作用域启动挂起任务,避免同步处理阻塞 IDE。
将 IntelliJ JPS 测试模块迁移到 Bazel,并排查仅在 Bazel 中出现的失败。根据症状检查依赖、插件、测试数据和 runfiles,重新生成并验证目标。
按 IntelliJ 项目规范编写或审查 Kotlin 和 Java 代码,涵盖语言选择、格式、密封类型、线程注解及控制流异常处理。
本指南帮助您按 IntelliJ 项目规则拆分更改并撰写提交信息:有工单时使用编号和变更说明,无工单时使用标签与子系统名,并在需要时说明原因和决定。
使用多个 Python 类型检查器比较代码片段或文件的类型推断和报错判断,并汇总各工具的结论、耗时与诊断信息,可保存为 Markdown 报告。
整理 Compose Desktop 界面中的状态和副作用,让可组合函数负责绘制,由展示器或协调器处理应用决策。了解状态归属、Effect、可复用组件接口、延迟列表键、动画和性能,适用于单项界面修改。