Project

General

Profile

Download (836 Bytes) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2017 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
package eu.etaxonomy.taxeditor.navigation.navigator.e4;
11

    
12
import eu.etaxonomy.taxeditor.navigation.navigator.Root;
13
import eu.etaxonomy.taxeditor.util.TaxonTreeNodeContentProvider;
14

    
15
/**
16
 * @author pplitzner
17
 * @date 05.09.2017
18
 */
19
public class TaxonNavigatorContentProviderE4 extends TaxonTreeNodeContentProvider {
20

    
21
    @Override
22
    public Object[] getChildren(Object parentElement) {
23
        if (parentElement instanceof Root) {
24
            return ((Root) parentElement).getParentBeans().toArray();
25
        }
26
        return super.getChildren(parentElement);
27
    }
28
}
(1-1/6)