Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在工作区中打开了一个插件项目。是否有可以帮助更改 plugin.xml 的 API?我不想将其解析为 xml 文件。
没有“好的”方法可以做到这一点,因为 PDE 人员没有打开他们的 API 来修改清单文件(MANIFEST.MF、plugin.xml 等)。您只能使用其 API 以只读方式访问这些信息。话虽这么说,如果你不害怕使用内部代码,你可以看看 PDEModelUtility 和 ModelModification。这些类在 OrganizeManifestProcessor 中使用。