Project

General

Profile

Download (1.21 KB) Statistics
| Branch: | Tag: | Revision:
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.newWizard;
12

    
13
import eu.etaxonomy.cdm.api.service.IClassificationService;
14
import eu.etaxonomy.cdm.model.taxon.Classification;
15
import eu.etaxonomy.taxeditor.store.CdmStore;
16
import eu.etaxonomy.taxeditor.ui.section.classification.ClassificationWizardPage;
17

    
18
/**
19
 * <p>ClassificationWizard class.</p>
20
 *
21
 * @author n.hoffmann
22
 * @created 23.06.2009
23
 * @version 1.0
24
 */
25

    
26
public class NewClassificationWizard extends AbstractNewEntityWizard<Classification> {
27

    
28
	private ClassificationWizardPage classificationWizardPage;
29

    
30
	@Override
31
	public void addPages() {
32
		classificationWizardPage = new ClassificationWizardPage(formFactory, getConversationHolder(), getEntity());
33
		addPage(classificationWizardPage);
34
	}
35
	
36
	@Override
37
	protected void saveEntity() {
38
		CdmStore.getService(IClassificationService.class).saveOrUpdate(getEntity());
39
	}
40

    
41
	@Override
42
	protected Classification createNewEntity() {
43
		return Classification.NewInstance(null);
44
	}
45
}
(4-4/17)