Org. Eclipse. Core. runtime. adapters Extension
The adapter extension point allows the plug-in to register the Adapter Factory. This information is used in the XML expression language during runtime to determine whether the adapter exists without loading the plug-in.
You can use the extension point to register the Adapter Factory so that you do not need to manually register the Adapter Factory when starting the plug-in.
Eg:
<Extension
Point = "org. Eclipse. Core. runtime. adapters">
<Factory
Adaptabletype = "com. jfans. model. Person"
Class = "com. jfans. Adapter. adapterfactory">
<Adapter
Type = "org. Eclipse. UI. Views. properties. ipropertysource">
</Adapter>
</Factory>
</Extension>
Note:
Class: corresponding to the Adapter Factory (that is, the class that implements the iadapterfacotry Interface)
Adaptabletype: The standard name of the class (typically iadaptable) for which the adapter is to be adapted.
Adapter: the class to adapt to (the adapter can have multiple). This factory can be applied to the standard names of Java classes or interfaces.
With this interface, you do not need to use iadapterfactory. registeradapters to register the adapter factory that uses this extension point during runtime.
You do not need to use the following registration code:
Register platform. getadaptermanager (). Register.