Summary of eclipse platform extensions: Use of org. Eclipse. Core. runtime. adapters extension points

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.