1
|
/**
|
2
|
* Copyright (C) 2018 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.termtree.e4;
|
10
|
|
11
|
import java.util.UUID;
|
12
|
|
13
|
import org.eclipse.jface.viewers.TreeViewer;
|
14
|
|
15
|
import eu.etaxonomy.cdm.model.term.DefinedTermBase;
|
16
|
import eu.etaxonomy.cdm.model.term.TermNode;
|
17
|
import eu.etaxonomy.cdm.model.term.TermType;
|
18
|
import eu.etaxonomy.cdm.persistence.dto.TermNodeDto;
|
19
|
import eu.etaxonomy.cdm.persistence.dto.TermTreeDto;
|
20
|
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
|
21
|
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
|
22
|
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
|
23
|
import eu.etaxonomy.taxeditor.workbench.part.IE4SavablePart;
|
24
|
|
25
|
/**
|
26
|
* @author pplitzner
|
27
|
* @since Nov 22, 2018
|
28
|
*/
|
29
|
public interface ITermTreeEditor<T extends DefinedTermBase>
|
30
|
extends IPostOperationEnabled, IE4SavablePart, ICdmEntitySessionEnabled {
|
31
|
|
32
|
public TermType getTermType();
|
33
|
|
34
|
public TermNodeDto getNodeDtoForUuid(UUID nodeUuid);
|
35
|
public TermTreeDto getTreeDtoForUuid(UUID treeUuid);
|
36
|
public void setNodeDtoForUuid(TermNodeDto node);
|
37
|
public void setTreeDtoForUuid(TermTreeDto tree);
|
38
|
public boolean checkDuplicates(UUID termUuid, UUID treeUuid) ;
|
39
|
|
40
|
|
41
|
public void addOperation(AbstractPostOperation<TermNode> operation);
|
42
|
|
43
|
public void setDirty();
|
44
|
|
45
|
public TreeViewer getViewer();
|
46
|
public void refresh();
|
47
|
}
|