一键导入
eclipse-plugin-development
Guidance for implementing and modifying Eclipse plugin, RCP, and OSGi-based code while preserving target-platform and JDK compatibility.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidance for implementing and modifying Eclipse plugin, RCP, and OSGi-based code while preserving target-platform and JDK compatibility.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | eclipse-plugin-development |
| description | Guidance for implementing and modifying Eclipse plugin, RCP, and OSGi-based code while preserving target-platform and JDK compatibility. |
Use this skill when working on tasks related to:
Produce changes that fit Eclipse plugin development conventions and remain compatible with:
Before suggesting implementation details, first align with the repository's actual setup if it can be determined from the codebase, build files, or target-platform:
If exact compatibility boundaries are unclear, prefer the most conservative implementation that is likely to work on the currently configured minimum versions.
Prefer solutions that align with existing Eclipse and OSGi patterns already used by the repository, such as:
Do not replace Eclipse-native mechanisms with generic alternatives unless explicitly requested.
When implementation changes affect plugin wiring, runtime behavior, packaging, or dependencies, check whether related metadata must also be updated.
Common files to inspect:
META-INF/MANIFEST.MFplugin.xmlfragment.xmlbuild.propertiesfeature.xmlcategory.xml.target filespom.xmlExamples:
plugin.xmlMANIFEST.MFbuild.propertiesfeature.xml, category.xml, or p2-related configuration.target files or Tycho configurationUse stable public Eclipse APIs whenever possible.
Avoid packages containing .internal. unless:
If internal API use is unavoidable, explicitly call out the compatibility and maintenance risk.
For SWT/JFace/Eclipse UI work:
Do not introduce Swing, JavaFX, or browser/web UI approaches unless they are already part of the repository or explicitly requested.
If the repository externalizes user-facing strings:
When appropriate, prefer patterns already common in Eclipse plugin codebases, such as:
IStatusStatusMultiStatusCoreExceptionUse the repository's existing logging and status reporting style where available.
Avoid printStackTrace and avoid silent failure paths.
Unless explicitly requested, do not rename or break the stability of:
Backward compatibility is especially important for plugin integrations and workspace metadata.
Do not use Java language features, standard library APIs, or build assumptions beyond the repository's minimum supported JDK.
If there is any doubt, prefer the older and more broadly compatible implementation.
Be especially careful with features that are version-sensitive, for example:
When adding or updating tests:
Before considering a task complete, check whether the change should also verify or update:
META-INF/MANIFEST.MFplugin.xmlbuild.properties.target or Tycho/Maven configurationWhen proposing or implementing changes for Eclipse plugin tasks, include relevant notes about:
Guidance for testing Eclipse plugins with JUnit, PDE, Tycho, SWTBot, runtime tests, and UI stability considerations.
Guidance for SWT, JFace, commands, handlers, views, editors, dialogs, wizards, and Eclipse workbench UI integration.
Guidance for Tycho, target-platform, p2, feature, category, and Eclipse dependency/build alignment.