Revision 0ebd851a
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/combo/TermUuidComboViewer.java | ||
---|---|---|
15 | 15 |
import org.eclipse.swt.layout.FillLayout; |
16 | 16 |
import org.eclipse.swt.widgets.Composite; |
17 | 17 |
|
18 |
import eu.etaxonomy.cdm.model.common.DefinedTerm; |
|
18 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
|
|
19 | 19 |
|
20 | 20 |
/** |
21 | 21 |
* @author pplitzner |
... | ... | |
38 | 38 |
viewer.setInput(input); |
39 | 39 |
} |
40 | 40 |
|
41 |
public DefinedTerm getSelection(){ |
|
41 |
public DefinedTermBase getSelection(){
|
|
42 | 42 |
IStructuredSelection structuredSelection = viewer.getStructuredSelection(); |
43 | 43 |
if(structuredSelection!=null && !structuredSelection.isEmpty()){ |
44 |
return (DefinedTerm) structuredSelection.getFirstElement(); |
|
44 |
return (DefinedTermBase) structuredSelection.getFirstElement();
|
|
45 | 45 |
} |
46 | 46 |
return null; |
47 | 47 |
} |
Also available in: Unified diff
ref #7086 Refactor term combo