Project

General

Profile

« Previous | Next » 

Revision 3e89c139

Added by Andreas Müller over 3 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewTaxonNodeWizard.java
1 1
/**
2
 *
3
 */
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
4 9
package eu.etaxonomy.taxeditor.newWizard;
5 10

  
6 11
import java.util.Map;
......
28 33
import eu.etaxonomy.taxeditor.ui.section.classification.TaxonNodeWizardPage;
29 34

  
30 35
/**
31
 * <p>NewTaxonNodeWizard class.</p>
36
 * NewTaxonNodeWizard class.
32 37
 *
33 38
 * @author n.hoffmann
34 39
 * @created Sep 15, 2009
......
101 106
        }
102 107
    }
103 108

  
104
//    @Override
105
//    protected TaxonNode createNewEntity() {
106
//        if(getSelection() != null){
107
//            Object selectedObject = getSelection().getFirstElement();
108
//            if(selectedObject instanceof TaxonNodeDto){
109
//                TaxonNodeDto taxonNodeDto = (TaxonNodeDto) selectedObject;
110
//            	TaxonNode node =  CdmStore.getService(ITaxonNodeService.class).load(taxonNodeDto.getUuid());
111
//            	Reference sec = node.getTaxon() != null? node.getTaxon().getSec():null;
112
//            	Taxon newTaxon = Taxon.NewInstance(TaxonNameFactory.NewNameInstance(PreferencesUtil.getPreferredNomenclaturalCode(), null), sec);
113
//            	TaxonNode child = node.addChildTaxon(newTaxon, null, null);
114
//
115
//                return child;
116
//
117
//            }
118
//        }
119
//
120
//        return null;
121
//    }
122

  
123 109
    public boolean openInEditor() {
124 110
        return isOpenInEditor ;
125 111
    }
......
170 156
            }
171 157
        }
172 158
    }
173
}
159
}

Also available in: Unified diff