Project

General

Profile

Download (877 Bytes) Statistics
| Branch: | Tag: | Revision:
1 27a1e008 Patrick Plitzner
// $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 b22738ad Patrick Plitzner
import eu.etaxonomy.taxeditor.util.TaxonTreeNodeContentProvider;
14 27a1e008 Patrick Plitzner
15
/**
16
 * @author pplitzner
17
 * @date 05.09.2017
18
 *
19
 */
20 b22738ad Patrick Plitzner
public class TaxonNavigatorContentProviderE4 extends TaxonTreeNodeContentProvider {
21 27a1e008 Patrick Plitzner
22
    /**
23
     * {@inheritDoc}
24
     */
25
    @Override
26
    public Object[] getChildren(Object parentElement) {
27
        if (parentElement instanceof Root) {
28 b22738ad Patrick Plitzner
            return ((Root) parentElement).getParentBeans().toArray();
29 27a1e008 Patrick Plitzner
        }
30 b22738ad Patrick Plitzner
        return super.getChildren(parentElement);
31 27a1e008 Patrick Plitzner
    }
32
33
}