An extension point is a hook that allows two plug-ins to communicate through the exchange of data or code. All extension points are defined in XML; these are then stored in the Extension Registry and accessed on demand from client plug-ins. One nice feature of Eclipse's Extension Registry is that it is possible to dynamically link plug-ins together at runtime but prior to the bundle having been started. The Extension Registry is also cached, so that the second time you start up Eclipse, it starts faster than it did previously.
To define an extension point, we need two pieces of information:
- The id and name of the extension point
- A pointer to an XML Schema that defines what valid XML content is allowed
本文介绍了Eclipse中扩展点的概念及其工作原理。扩展点作为插件间通信的桥梁,允许插件通过交换数据或代码进行交互。文章详细阐述了定义扩展点所需的两部分信息:扩展点的ID和名称以及描述有效XML内容的XML Schema指针。

被折叠的 条评论
为什么被折叠?



