Project

General

Profile

Download (877 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
 */
20
public class TaxonNavigatorContentProviderE4 extends TaxonTreeNodeContentProvider {
21

    
22
    /**
23
     * {@inheritDoc}
24
     */
25
    @Override
26
    public Object[] getChildren(Object parentElement) {
27
        if (parentElement instanceof Root) {
28
            return ((Root) parentElement).getParentBeans().toArray();
29
        }
30
        return super.getChildren(parentElement);
31
    }
32

    
33
}
(1-1/6)