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
.termvocabulary
;
11 import org
.eclipse
.jface
.viewers
.ILabelProvider
;
12 import org
.eclipse
.jface
.viewers
.IStructuredContentProvider
;
13 import org
.eclipse
.swt
.widgets
.Composite
;
15 import eu
.etaxonomy
.cdm
.model
.term
.TermVocabulary
;
16 import eu
.etaxonomy
.taxeditor
.ui
.combo
.AbstractComboComposite
;
24 public class TermVocabularyComboViewer
extends AbstractComboComposite
<TermVocabulary
>{
26 public TermVocabularyComboViewer(Composite parent
, int style
) {
31 public String
getElementLabel(TermVocabulary element
) {
32 return element
!=null?element
.getLabel():"";
36 public IStructuredContentProvider
getContentProvider() {
37 return new TermVocabularyComboContentProvider();
41 public ILabelProvider
getLabelProvider() {
42 return new TermVocabularyComboLabelProvider();