1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
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.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.taxeditor.user.view;
|
12
|
|
13
|
import java.util.List;
|
14
|
|
15
|
import org.eclipse.jface.viewers.IStructuredContentProvider;
|
16
|
import org.eclipse.jface.viewers.Viewer;
|
17
|
|
18
|
import eu.etaxonomy.cdm.model.common.User;
|
19
|
|
20
|
/**
|
21
|
* <p>UserManagerContentProvider class.</p>
|
22
|
*
|
23
|
* @author n.hoffmann
|
24
|
* @created 01.07.2009
|
25
|
* @version 1.0
|
26
|
*/
|
27
|
public class UserManagerContentProvider implements IStructuredContentProvider {
|
28
|
|
29
|
/* (non-Javadoc)
|
30
|
* @see org.eclipse.jface.viewers.IContentProvider#dispose()
|
31
|
*/
|
32
|
/**
|
33
|
* <p>dispose</p>
|
34
|
*/
|
35
|
public void dispose() {
|
36
|
// TODO Auto-generated method stub
|
37
|
|
38
|
}
|
39
|
|
40
|
/* (non-Javadoc)
|
41
|
* @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
|
42
|
*/
|
43
|
/** {@inheritDoc} */
|
44
|
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
|
45
|
// TODO Auto-generated method stub
|
46
|
|
47
|
}
|
48
|
|
49
|
/* (non-Javadoc)
|
50
|
* @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
|
51
|
*/
|
52
|
/** {@inheritDoc} */
|
53
|
public Object[] getElements(Object inputElement) {
|
54
|
List<User> users = (List<User>) inputElement;
|
55
|
return users.toArray();
|
56
|
}
|
57
|
}
|