The eclipse extension point is similar to an interface: it declares a set of properties to be implemented.
For example, the org.eclipse.ui.editors
extension point states that to implement this extension point you must provide:
- ID
- name
- icon
- class
- file extensions
- contribution
There is no EXACT way to say this in UML, since the extension point is neither an interface nor an object, but you can model it by adding a stereotype to your model, say <<extension_point>>
(you can learn more about stereotypes here ) and create a class on your diagram (e.g. org.eclipse.ui.editors
) that has all of these attributes, with their required types (in this example, all attributes are strings except class
, which are of type org.eclipse.ui.IEditorPart
).
After that, you can create another stereotype, say <<extension_point_implementation>>
and a new class that has this stereotype. This class, which you connect to the implementation reference from the <<extension_point>>
class, and then set the values ββof all attributes for what you are implementing.
Please note that this is not βpureβ UML, as you are defining a new domain with added semantics, but I think that would be a good and easy-to-understand way to model what you want.
source share