Project

General

Profile

Download (1.23 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
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.
8
*/
9

    
10
package eu.etaxonomy.taxeditor.ui.openurl;
11

    
12
import java.util.List;
13

    
14
import org.eclipse.jface.viewers.IStructuredContentProvider;
15
import org.eclipse.jface.viewers.Viewer;
16

    
17
/**
18
 * @author n.hoffmann
19
 * @created Jan 31, 2011
20
 * @version 1.0
21
 */
22
public class OpenUrlContentProvider implements IStructuredContentProvider {
23

    
24
	/* (non-Javadoc)
25
	 * @see org.eclipse.jface.viewers.IContentProvider#dispose()
26
	 */
27
	@Override
28
	public void dispose() {
29

    
30
	}
31

    
32
	/* (non-Javadoc)
33
	 * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
34
	 */
35
	@Override
36
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
37

    
38
	}
39

    
40
	/* (non-Javadoc)
41
	 * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
42
	 */
43
	@Override
44
	public Object[] getElements(Object inputElement) {
45
		if(inputElement instanceof List){
46
			return ((List) inputElement).toArray();
47
		}
48
		
49
		
50
		return new Object[]{};
51
	}
52

    
53
}
(2-2/7)