简体   繁体   English

如何在Eclipse 4 RCP中将零件插入另一个插件的PartStack中?

[英]How to insert a Part into another plug-in's PartStack in Eclipse 4 RCP?

I'd like to practice Eclipse 4 RCP application development, and my current goal is a graph modeling application. 我想练习Eclipse 4 RCP应用程序开发,而我目前的目标是图建模应用程序。 As far as I know GEF (Graphical Editing Framework) is the most reliable graphical framework, but it is Eclipse 3.x only. 据我所知,GEF(图形编辑框架)是最可靠的图形框架,但仅适用于Eclipse3.x。 So I decided to create a plug-in only for the editor but I don't know how to insert the graphical editor's Part into the main plug-in's Application Model. 因此,我决定只为编辑器创建一个插件,但是我不知道如何将图形编辑器的Part插入主插件的Application Model中。 What's more, how two plug-ins can communicate with each other? 此外,两个插件如何相互通信?

Plugins communicate through extension points, there are certain extension points defined by plugins to allow extending existing functionality. 插件通过扩展点进行通信,插件定义了某些扩展点以允许扩展现有功能。 So I would suggest you reading about those things. 因此,我建议您阅读这些内容。 Then find out if which extension points does plugin you are interested in offers and extend it. 然后找出您感兴趣的插件是否扩展了哪些扩展点并对其进行扩展。 You may find extension points definitions in plugin.xml or in the documentation. 您可以在plugin.xml或文档中找到扩展点定义。

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

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