3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.preference
.menu
;
13 import java
.util
.Collection
;
15 import org
.eclipse
.jface
.viewers
.IStructuredContentProvider
;
16 import org
.eclipse
.jface
.viewers
.Viewer
;
18 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
21 * <p>DefinedTermBaseContentProvider class.</p>
24 * @created Aug 5, 2010
27 public class DefinedTermBaseContentProvider
implements
28 IStructuredContentProvider
{
31 public Object
[] getElements(Object inputElement
) {
32 if(inputElement
instanceof Collection
){
33 return ((Collection
<DefinedTermBase
>) inputElement
).toArray(new DefinedTermBase
[0]);
35 return new Object
[]{};
41 public void dispose() {}
44 public void inputChanged(Viewer viewer
, Object oldInput
,