实现或修改 IntelliJ `AnAction`,并在 `plugin.xml` 中注册。将显示名称和说明写入消息资源文件,按需设置图标,并通过事件协程作用域启动挂起任务,避免同步处理阻塞 IDE。
- 为 IDE 菜单添加操作
- 修改操作注册或图标
- 整理操作名称和说明
将现有 Swing 设置页面迁移到 Compose Swing,梳理状态、事件和设置应用顺序,并准备表单预览与测试,便于在 IDE 中检查迁移后的界面和行为。
Move a Swing settings page to Compose Swing, with previews and tests.
实测评分 未实测
查看安装方法本技能指导你把现有 Swing 设置页面迁移到 Compose Swing,并从梳理页面到完成检查逐步推进。它会帮助你盘点页面、嵌套编辑表单、输入校验、搜索以及 Apply、Reset、Cancel 的行为,再将状态和事件整理到控制器与 Composable 之间。重建界面时沿用已有组件,并保留设置事务、应用顺序、输入校验、焦点和无障碍支持。它还会为各表单准备预览和测试,并在 IDE 中对照原页面检查外观与操作。
当你要把 JetBrains IDE 的设置页面替换为 Compose Swing 时,可以使用本技能。如果迁移必须保留既有设置的应用顺序或共享模型,或者还需要表单级测试、预览及 IDE 中的显示检查,它也能帮助你安排这些工作。
工作流程包含阅读 Compose Swing UI DSL、组件状态和测试规范的库文档。流程假设你会在 IDE 中打开并检查预览和实际页面。
本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。
AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。
不计入评分。 由 AI(OpenAI Codex)于 2026年10月28日 评估。仅供参考,安装前请同时查看原文。
安装前可以查看交给 AI 代理的指令内容。
Extract the UI into declarative Compose Swing functions: state down, events up. Keep the configurable's transaction and application order.
Read kotlin-ui-dsl.md, README.md, and raw-swing.md. Read the library's component state and testing contracts.
Preserve unrelated files. Report unrelated renderer failures separately.
ComposeSwingSearchableConfigurable for a standalone page without those contracts.panel { } with FormPanel. A page without the DSL keeps its layout structure.
Preserve bundle keys, spacing, focus, labels, accessibility, and validation.
Derive enabled and visible regions from state. Use one authority for each property.
Keep hidden controls in the composition when their identity or state must survive.org.jetbrains.compose.swing.tooling.Preview beside each production form.
Preview state and callbacks must call the same form. Include inherited values and disabled regions. Use the default preview size.
A preview must not construct a project, configurable, transaction, or composition host.
Use the preview to expose dependencies that belong in the controller.runComposeSwingTest, with the form passed to its setContent.
Drive user actions, adopt callbacks into state, and assert the rendered result after recomposition.
Test Reset, enabled regions, selection, labels, and value preservation.
Test Apply, Cancel, model validation, disposal, and rebuilding through the owner's public API.
Lifecycle tests alone do not verify the form. Confirm that the runner executed the intended tests.remember when Reset or another page can change them.bind(...) for persisted settings owned by ComposeSwingSearchableConfigurable.
Preserve property transformations and change notifications.
A standalone configurable calls requestModifiedCheck() for state changes without a user gesture.ComposeSwingSearchableConfigurable.disposeUIResources must call super.LaunchedEffect.ConfigurationException for apply-time refusal and the error-outline modifier for field errors.SearchableOptionContributor when they must remain findable.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
实现或修改 IntelliJ `AnAction`,并在 `plugin.xml` 中注册。将显示名称和说明写入消息资源文件,按需设置图标,并通过事件协程作用域启动挂起任务,避免同步处理阻塞 IDE。
将 IntelliJ JPS 测试模块迁移到 Bazel,并排查仅在 Bazel 中出现的失败。根据症状检查依赖、插件、测试数据和 runfiles,重新生成并验证目标。
按 IntelliJ 项目规范编写或审查 Kotlin 和 Java 代码,涵盖语言选择、格式、密封类型、线程注解及控制流异常处理。
本指南帮助您按 IntelliJ 项目规则拆分更改并撰写提交信息:有工单时使用编号和变更说明,无工单时使用标签与子系统名,并在需要时说明原因和决定。
使用多个 Python 类型检查器比较代码片段或文件的类型推断和报错判断,并汇总各工具的结论、耗时与诊断信息,可保存为 Markdown 报告。
整理 Compose Desktop 界面中的状态和副作用,让可组合函数负责绘制,由展示器或协调器处理应用决策。了解状态归属、Effect、可复用组件接口、延迟列表键、动画和性能,适用于单项界面修改。