Difference between revisions of "Script type (extension point)"
From BioUML platform
Tagir Valeev (Talk | contribs) (Created page with "{{Extension point|scriptType|ru.biosoft.access|since=0.9.6|registry=ru.biosoft.access.javascript.ScriptTypeRegistry}} === Description === This extension point allows to regist...") |
Latest revision as of 14:32, 13 September 2013
- Identifier
- ru.biosoft.access.scriptType
- Plugin
- ru.biosoft.access
- Since
- 0.9.6
- Registry
ScriptTypeRegistry
[edit] Description
This extension point allows to register new script languages supported by BioUML.
[edit] Configuration Markup
<!ELEMENT scriptType> <!ATTLIST scriptType type CDATA #REQUIRED title CDATA #REQUIRED class CDATA #REQUIRED lexer CDATA #REQUIRED product CDATA #IMPLIED >
- type
- short name of script type. It's used mostly as internal script type identifier, but can be exposed to user, for example, as default extension for new script elements
- title
- user-friendly name of script language.
- class
- fully-qualified name of data element class representing the script written on this language (must extend
ScriptDataElement
abstract class). - lexer
- fully-qualified name of class representing the language lexer used for syntax highlighting in BioUML workbench (must extend
Lexer
). - product
- if specified, then BioUML server user must be subscribed to given product in order to use this type of scripts.
[edit] Example
<extension point="ru.biosoft.access.scriptType"> <scriptType type="R" title="R script" product="R" class="ru.biosoft.plugins.jri.RElement" lexer="ru.biosoft.plugins.jri.lex.RLexer" /> </extension>
This extension registers R scripts with title "R script" which are available for subscribers of "R" product only.