merge-update from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / descriptive / operation / CreateSpecimenDescriptionOperation.java
1 // $Id$
2 /**
3 * Copyright (C) 2013 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 package eu.etaxonomy.taxeditor.editor.view.descriptive.operation;
11
12 import org.eclipse.core.commands.operations.IUndoContext;
13
14 import eu.etaxonomy.cdm.model.description.DescriptionBase;
15 import eu.etaxonomy.cdm.model.description.SpecimenDescription;
16 import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
17 import eu.etaxonomy.taxeditor.operation.AbstractDescriptionPostOperation;
18 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
19
20 /**
21 * @author pplitzner
22 * @date 04.12.2013
23 *
24 */
25 public class CreateSpecimenDescriptionOperation extends AbstractDescriptionPostOperation<SpecimenOrObservationBase<?>, DescriptionBase> {
26
27 /**
28 * @param label
29 * @param undoContext
30 * @param describable
31 * @param postOperationEnabled
32 */
33 public CreateSpecimenDescriptionOperation(String label, IUndoContext undoContext, SpecimenOrObservationBase<?> describable, IPostOperationEnabled postOperationEnabled) {
34 super(label, undoContext, describable, postOperationEnabled);
35 }
36
37 /* (non-Javadoc)
38 * @see eu.etaxonomy.taxeditor.operation.AbstractDescriptionPostOperation#initDescription()
39 */
40 @Override
41 protected void initDescription() {
42 description = SpecimenDescription.NewInstance(element);
43 }
44
45 }