Compare Natures
Identifier:
com.ps.consul.eclipse.ui.viewer.tree.diff.CompareNatures
Since:
2.x
Description:
This extensionpoint is used to register a comparator mechanism for a model with a specific nature.
Therefore it must be implement a class of type com.ps.consul.eclipse.ui.viewer.tree.diff.editor.IConsulModelCompareProvider.
Recommended is to use a default abstract implementation com.ps.consul.eclipse.ui.viewer.tree.diff.editor.ConsulModelCompareProvider.
The main task is just to provide two models, which can be compared. The init method gets the IEditorInput for the current open editor.
Configuration Markup:
<!ELEMENT extension (provider)+>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
Extension point for compare natures.
- point - com.ps.consul.eclipse.ui.viewer.tree.diff.CompareProviders
<!ELEMENT provider EMPTY>
<!ATTLIST provider
class CDATA #REQUIRED
natureid CDATA #REQUIRED
desc CDATA #REQUIRED
name CDATA #REQUIRED>
An additional provider for compare nature.
- class - A class of type IConsulModelCompareProvider which provides all input for the compare editor.
- natureid - A string uniquely identifying the model nature for which models the compare editor to open with.
The nature has to be written to the model with the class com.ps.consul.eclipse.ui.viewer.tree.diff.editor.natures.
NatureModeler when the model is imported from its original source
- desc - A short description for this nature; This is desplayed to the use when he
informed about available natures
(a model can have more than one nature, the user has to decide then which comparator is to use)
- name - A name for the provider
Examples:
<extension point="com.ps.consul.eclipse.ui.viewer.tree.diff.CompareProviders">
<provider
class="A class of type IConsulModelCompareProvider which provides all input for the compare editor"
natureid="a string uniquely identifying the model nature for which models the compare editor to open with.
The nature has to be written to the model with the class
com.ps.consul.eclipse.ui.viewer.tree.diff.editor.natures.NatureModeler when the model is
imported from its original source"
desc="A short description for the nature; This is desplayed to the user when he
is informed about available natures (a model can have more than one nature, the user has
to decide then which comparator is to use)"
name="a name for the provider"/>
</extension>