public abstract static class TreeViewerExtension.Factory extends Object
GeneiousPlugin.getTreeViewerExtensionFactories()
for creating TreeViewerExtensions| Constructor and Description |
|---|
TreeViewerExtension.Factory() |
| Modifier and Type | Method and Description |
|---|---|
TreeViewerExtension |
createTreeViewerExtension(AnnotatedPluginDocument annotatedPluginDocument)
|
TreeViewerExtension |
createTreeViewerExtension(DocumentViewer treeViewer,
AnnotatedPluginDocument annotatedPluginDocument)
Optionally create a TreeViewerExtension for a given AnnotatedPluginDocument.
|
public TreeViewerExtension createTreeViewerExtension(DocumentViewer treeViewer, AnnotatedPluginDocument annotatedPluginDocument)
treeViewer - the tree viewer. Most factories can ignore this parameter, but some implementations
may find it useful. For example using DocumentViewer.getActionProvider().ActionProvider.getSaveAction() to simulate clicking on the save button.annotatedPluginDocument - the document that is being viewed in the tree viewer. Most factories can ignore
this parameter. It is only useful on factories which may for example only wish to provide an extension on
PhylogenyDocuments because they require access to
an associated alignment in addition to the tree. Any TreeViewerExtension should not query the tree from this
annotatedPluginDocument. Instead it will be told which tree is being viewed immediately after creation via
TreeChangeListener.treeChanged(jebl.evolution.trees.TreeChangeEvent).@Deprecated public TreeViewerExtension createTreeViewerExtension(AnnotatedPluginDocument annotatedPluginDocument)