Character character = Character.NewInstance(structureNode, propertyNode, null, label, label);
FeatureNode characterNode = FeatureNode.NewInstance(character);
- Object input = getViewer().getInput();
- if(input==null){
+ if(getViewer().getInput()==null){
//create new feature tree
FeatureTree featureTree = FeatureTree.NewInstance();
getViewer().setInput(featureTree);
}
if(target==null){
- FeatureNode root = ((FeatureTree)input).getRoot();
+ FeatureNode root = ((FeatureTree)getViewer().getInput()).getRoot();
root.addChild(characterNode);
}
else{
+++ /dev/null
-// $Id$
-/**
-* Copyright (C) 2017 EDIT
-* European Distributed Institute of Taxonomy
-* http://www.e-taxonomy.eu
-*
-* The contents of this file are subject to the Mozilla Public License Version 1.1
-* See LICENSE.TXT at the top of this package for the full license terms.
-*/
-package eu.etaxonomy.taxeditor.editor.workingSet;
-
-import eu.etaxonomy.taxeditor.featuretree.FeatureTreeLabelProvider;
-
-/**
- *
- * @author pplitzner
- * @date Jun 1, 2017
- *
- */
-public class CharacterLabelProvider extends FeatureTreeLabelProvider {
-
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String getText(Object element) {
- if(element instanceof eu.etaxonomy.cdm.model.description.Character){
- eu.etaxonomy.cdm.model.description.Character character = (eu.etaxonomy.cdm.model.description.Character)element;
- }
- return super.getText(element);
- }
-
-}