Difference between revisions of "Diagram view part (extension point)"
From BioUML platform
Tagir Valeev (Talk | contribs) ({{Class}}) |
Tagir Valeev (Talk | contribs) m ({{Class}}) |
||
Line 40: | Line 40: | ||
===API Information=== | ===API Information=== | ||
− | The value of the class attribute must represent an implementor of | + | The value of the class attribute must represent an implementor of {{Class|ru.biosoft.gui.ViewPart}}. |
Revision as of 15:50, 13 May 2013
- Identifier
- biouml.workbench.diagramViewPart
- Plugin
- biouml.workbench
Description
BioUML workbench provides special pane where viewers for some diagram data will be shown. Any plug-in can contribute specific viewers to show some diagram data. Typical example of viewer is Clipboard showing the copied element of diagram.
Configuration Markup
<!ELEMENT diagramViewPart> <!ATTLIST diagramViewPart class CDATA #REQUIRED Name CDATA ShortDescription CDATA Priority CDATA >
- class
- the fully-qualified name of a class which implements
EditorPart
. - Name
- tab display name
- ShortDescription
- editor part short description, can be used as tooltip
- Priority
- tab priority, tabs will be sorted according they priority.
diagramViewPart
attributes are mapped to corresponding Action properties using the associated key, so other Action or user defined attributes can be used.
See Action.getValue(String key)
for details.
Examples
Following is an example of a Clipboard definition:
<extension id="Clipboard" point="biouml.workbench.diagramViewPart"> <diagramViewPart class="biouml.workbench.diagram.ClipboardView" Name="Clipboard" ShortDescription="Diagram clipboard is used to copy and paste diagram elements from one diagram to another." Priority = "2.5" /> </extension>
API Information
The value of the class attribute must represent an implementor of ViewPart
.