2 * Copyright (C) 2017 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.taxeditor
.ui
.combo
;
11 import java
.util
.List
;
13 import org
.eclipse
.jface
.viewers
.IStructuredContentProvider
;
15 import eu
.etaxonomy
.cdm
.api
.service
.ITermService
;
16 import eu
.etaxonomy
.cdm
.model
.term
.DefinedTermBase
;
17 import eu
.etaxonomy
.cdm
.model
.term
.TermType
;
18 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
25 public class TermUuidContentProvider
implements IStructuredContentProvider
{
28 public Object
[] getElements(Object inputElement
) {
29 if(inputElement
instanceof TermType
){
30 List
<DefinedTermBase
> terms
= CdmStore
.getService(ITermService
.class).listByTermType((TermType
) inputElement
, null, null, null, null);
31 return terms
.toArray();