Revision 19fa310b
Added by Cherian Mathew almost 11 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/EditorUtil.java | ||
---|---|---|
26 | 26 |
import org.eclipse.ui.PartInitException; |
27 | 27 |
import org.eclipse.ui.handlers.HandlerUtil; |
28 | 28 |
|
29 |
import eu.etaxonomy.taxeditor.editor.group.authority.CdmAuthorityEditorInput; |
|
30 |
import eu.etaxonomy.taxeditor.editor.group.authority.CdmAuthorityEditor; |
|
29 | 31 |
import eu.etaxonomy.taxeditor.editor.internal.TaxeditorEditorPlugin; |
30 | 32 |
import eu.etaxonomy.taxeditor.editor.key.KeyEditor; |
31 | 33 |
import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyEditorInput; |
... | ... | |
73 | 75 |
throws PartInitException { |
74 | 76 |
open(input, KeyEditor.ID); |
75 | 77 |
} |
78 |
|
|
79 |
public static void open(CdmAuthorityEditorInput input) |
|
80 |
throws PartInitException { |
|
81 |
open(input, CdmAuthorityEditor.ID); |
|
82 |
} |
|
76 | 83 |
|
77 | 84 |
/** |
78 | 85 |
* Taxon Editors may be opened by supplying a taxon node uuid. Session gets |
... | ... | |
317 | 324 |
.NewInstance(polytomousKeyUuid); |
318 | 325 |
open(input); |
319 | 326 |
} |
327 |
|
|
328 |
public static void openCdmAuthorities(UUID groupUuid) |
|
329 |
throws Exception { |
|
330 |
CdmAuthorityEditorInput input = CdmAuthorityEditorInput.NewInstance(groupUuid); |
|
331 |
open(input); |
|
332 |
} |
|
320 | 333 |
} |
Also available in: Unified diff
CdmAuthorityEditor : Editor for updating Cdm authorities
CdmAuthorityEditorInput : Input for the CdmAuthorityEditor
EditCdmAuthoritiesHandler : Handler to open CdmAuthorityEditor
EditorUtil : added method to open CdmAuthorityEditor
plugin.xml : added extensions to the BulkEditor menu to open the CdmAuthorityEditor checking if the selected object is Group