Module type (extension point)
From BioUML platform
- Identifier
- biouml.workbench.moduleType
- Plugin
- biouml.workbench
Description
This extension allows plug-in to contribute new module type that user can create using New Database dialog.
Available module types will be shown in Database type combo box in New Database dialog when user will select Database > New simple database menu item.
Configuration markup
<!ELEMENT moduleType> <!ATTLIST moduleType class CDATA #REQUIRED displayName CDATA #REQUIRED description CDATA >
- class
- the fully-qualified name of a class which implements
ModuleType
. - displayName
- a module type name as it will be shown in 'New module' dialog.
- description
- a module type description as it will be shown in 'New module' dialog. It can be plain or html text.
Examples
Following is an example of standard module type definition:
<extension point="biouml.workbench.moduleType"> <moduleType class="biouml.standard.StandardModuleType" displayName="%standardModule" description="%standardModuleDescription"/> </extension>
API Information
- The value of the class attribute must represent an implementer of
ModuleType
. - The method
ModuleType.canCreateEmptyModule()
should return true; - Module type class should implement method
ModuleType.createModule(Repository parent, String name)
, which should create a new instance of corresponding module.