4 package eu
.etaxonomy
.taxeditor
.store
;
6 import java
.util
.HashMap
;
10 import org
.eclipse
.ui
.IEditorInput
;
12 import eu
.etaxonomy
.taxeditor
.model
.ICdmEditorHandle
;
20 public class EditorManager
{
22 Map
<Class
<?
extends IEditorInput
>, ICdmEditorHandle
> editors
= new HashMap
<Class
<?
extends IEditorInput
>, ICdmEditorHandle
>();
24 public void openEditor(Class
<?
extends IEditorInput
> inputType
, UUID uuid
){
25 ICdmEditorHandle editor
= editors
.get(inputType
);
28 StoreUtil
.warningDialog("No editor", getClass(), "No editor was registered for the given type.");
34 public ICdmEditorHandle
add(ICdmEditorHandle editor
){
35 return editors
.put(editor
.getInputType(), editor
);
38 public ICdmEditorHandle
remove(ICdmEditorHandle editor
){
39 return editors
.remove(editor
);