Module type (extension point)

From BioUML platform
Jump to: navigation, search
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.

NewDatabaseDialog.png

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.
Personal tools
Namespaces

Variants
Actions
BioUML platform
Community
Modelling
Analysis & Workflows
Collaborative research
Development
Virtual biology
Wiki
Toolbox