a553d922f6a444f55181f529c143226d28500c01
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.taxeditor
.navigation
.navigator
;
13 import java
.util
.List
;
15 import org
.apache
.log4j
.Logger
;
16 import org
.eclipse
.core
.runtime
.IAdaptable
;
17 import org
.eclipse
.core
.runtime
.PlatformObject
;
18 import org
.eclipse
.ui
.IElementFactory
;
19 import org
.eclipse
.ui
.IMemento
;
20 import org
.eclipse
.ui
.IPersistableElement
;
22 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
23 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
30 public class NavigatorRoot
extends PlatformObject
implements IAdaptable
, IPersistableElement
, IElementFactory
{
31 // implements IAdaptable, IPersistableElement, IElementFactory {
32 private static final Logger logger
= Logger
.getLogger(NavigatorRoot
.class);
34 public List
<Taxon
> getParentBeans() {
35 return CdmStore
.getDefault().getRootTaxa();
39 * @see org.eclipse.ui.IPersistableElement#getFactoryId()
41 public String
getFactoryId() {
42 // TODO Auto-generated method stub
47 * @see org.eclipse.ui.IPersistable#saveState(org.eclipse.ui.IMemento)
49 public void saveState(IMemento memento
) {
50 // TODO Auto-generated method stub
55 * @see org.eclipse.ui.IElementFactory#createElement(org.eclipse.ui.IMemento)
57 public IAdaptable
createElement(IMemento memento
) {
58 // TODO Auto-generated method stub