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
.bulkeditor
.referencingobjects
;
12 import java
.util
.Collection
;
14 import org
.apache
.log4j
.Logger
;
15 import org
.eclipse
.jface
.viewers
.IStructuredContentProvider
;
16 import org
.eclipse
.jface
.viewers
.Viewer
;
19 * <p>ReferencingObjectsContentProvider class.</p>
24 public class ReferencingObjectsContentProvider
implements
25 IStructuredContentProvider
{
27 @SuppressWarnings("unused")
28 private static final Logger logger
= Logger
.getLogger(ReferencingObjectsContentProvider
.class);
31 public Object
[] getElements(Object inputElement
) {
32 if (inputElement
instanceof Collection
) {
33 return ((Collection
<?
>) inputElement
).toArray();
39 public void dispose() {}
42 public void inputChanged(Viewer viewer
, Object oldInput
, Object newInput
) {}