2 * Copyright (C) 2007 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.
10 package eu
.etaxonomy
.taxeditor
.preference
.menu
;
12 import java
.util
.Collection
;
14 import org
.eclipse
.jface
.viewers
.IStructuredContentProvider
;
15 import org
.eclipse
.jface
.viewers
.Viewer
;
17 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
20 * <p>DefinedTermBaseContentProvider class.</p>
23 * @created Aug 5, 2010
26 public class DefinedTermBaseContentProvider
implements
27 IStructuredContentProvider
{
30 public Object
[] getElements(Object inputElement
) {
31 if(inputElement
instanceof Collection
){
32 return ((Collection
<DefinedTermBase
>) inputElement
).toArray(new DefinedTermBase
[0]);
34 return new Object
[]{};
40 public void dispose() {}
43 public void inputChanged(Viewer viewer
, Object oldInput
,