Script type (extension point)

From BioUML platform
Revision as of 14:32, 13 September 2013 by Tagir Valeev (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Identifier
ru.biosoft.access.scriptType
Plugin
ru.biosoft.access
Since
0.9.6
Registry
ScriptTypeRegistry

Description

This extension point allows to register new script languages supported by BioUML.

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.

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.

Personal tools
Namespaces

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