element
Identifier:
net.refractions.udig.project.element
Since:
[Enter the first release in which this extension point appears.]
Description:
This extension point is allows a simple way to add objects to a project. In order to add a new type of object to a project you must either learn EMF and generate a new type of ProjectElement subclass or extend this extension point. This extension point allows the extension mechanism to create a type of net.refractions.udig.project.element.IGenericProjectElement which, when wrapped by a ProjectElementAdapterImpl (created using ElementFactory or ApplicationGIS if you have the net.refractions.udig.ui.project plugin installed), can be added to a project and persisted between uDig runs.
Configuration Markup:
<!ELEMENT extension (element+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT element EMPTY>
<!ATTLIST element
id CDATA #REQUIRED
class CDATA #REQUIRED
label CDATA #IMPLIED
icon CDATA #IMPLIED
labelProvider CDATA #IMPLIED
fileExtension CDATA #REQUIRED
>
An element that can be wrapped by the net.refractions.udig.project.element.ProjectElementAdapter class and added to a project
- id - A unique identifier for the type of element
- class - The implementation of the element type. It is recommended that one extends the net.refractions.udig.project.element.AbstractGenericProjectElement class as it provides most of the boiler plate code required. It also adapts to the ProjectElement interface.
- label - A label to display in viewers if the LabelProvider is not supplied
- icon - An icon to display in viewers if the LabelProvider is not supplied or if getImage returns null;
- labelProvider - Provides labelling for the element in JFace viewer. If getImage returns null then icon will be used. The labelProvider overrides options put in the label and icon attributes. If the labelProvider implements IColorDecorator or IFontDecorator then the font and color will be used.
- fileExtension - The extension for the element when it is saved to file.
Examples:
[Enter extension point usage example here.]
API Information:
[Enter API information here.]
Supplied Implementation:
[Enter information about supplied implementation of this extension point.]