Project

General

Profile

Download (1.5 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2013 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
*/
9
package eu.etaxonomy.taxeditor.editor.view.descriptive.operation;
10

    
11
import org.eclipse.core.commands.operations.IUndoContext;
12

    
13
import eu.etaxonomy.cdm.model.description.DescriptionBase;
14
import eu.etaxonomy.cdm.model.description.SpecimenDescription;
15
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
16
import eu.etaxonomy.taxeditor.operation.AbstractDescriptionPostOperation;
17
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
18

    
19
/**
20
 * @author pplitzner
21
 * @date 04.12.2013
22
 *
23
 */
24
public class CreateSpecimenDescriptionOperation extends AbstractDescriptionPostOperation<SpecimenOrObservationBase<?>, DescriptionBase> {
25

    
26
    /**
27
     * @param label
28
     * @param undoContext
29
     * @param describable
30
     * @param postOperationEnabled
31
     */
32
    public CreateSpecimenDescriptionOperation(String label, IUndoContext undoContext, SpecimenOrObservationBase<?> describable, IPostOperationEnabled postOperationEnabled) {
33
        super(label, undoContext, describable, postOperationEnabled);
34
    }
35

    
36
    /* (non-Javadoc)
37
     * @see eu.etaxonomy.taxeditor.operation.AbstractDescriptionPostOperation#initDescription()
38
     */
39
    @Override
40
    protected void initDescription() {
41
        description = SpecimenDescription.NewInstance(element);
42
    }
43

    
44
}
(3-3/10)