a553d922f6a444f55181f529c143226d28500c01
[taxeditor.git] / taxeditor-navigation / src / main / java / eu / etaxonomy / taxeditor / navigation / navigator / NavigatorRoot.java
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.navigation.navigator;
12
13 import java.util.List;
14
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;
21
22 import eu.etaxonomy.cdm.model.taxon.Taxon;
23 import eu.etaxonomy.taxeditor.store.CdmStore;
24
25 /**
26 * @author p.ciardelli
27 * @created 02.06.2009
28 * @version 1.0
29 */
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);
33
34 public List<Taxon> getParentBeans() {
35 return CdmStore.getDefault().getRootTaxa();
36 }
37
38 /* (non-Javadoc)
39 * @see org.eclipse.ui.IPersistableElement#getFactoryId()
40 */
41 public String getFactoryId() {
42 // TODO Auto-generated method stub
43 return null;
44 }
45
46 /* (non-Javadoc)
47 * @see org.eclipse.ui.IPersistable#saveState(org.eclipse.ui.IMemento)
48 */
49 public void saveState(IMemento memento) {
50 // TODO Auto-generated method stub
51
52 }
53
54 /* (non-Javadoc)
55 * @see org.eclipse.ui.IElementFactory#createElement(org.eclipse.ui.IMemento)
56 */
57 public IAdaptable createElement(IMemento memento) {
58 // TODO Auto-generated method stub
59 return null;
60 }
61 }