3 * Copyright (C) 2013 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.editor
.view
.descriptive
.operation
;
12 import org
.eclipse
.core
.commands
.operations
.IUndoContext
;
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
;
25 public class CreateSpecimenDescriptionOperation
extends AbstractDescriptionPostOperation
<SpecimenOrObservationBase
<?
>, DescriptionBase
> {
31 * @param postOperationEnabled
33 public CreateSpecimenDescriptionOperation(String label
, IUndoContext undoContext
, SpecimenOrObservationBase
<?
> describable
, IPostOperationEnabled postOperationEnabled
) {
34 super(label
, undoContext
, describable
, postOperationEnabled
);
38 * @see eu.etaxonomy.taxeditor.operation.AbstractDescriptionPostOperation#initDescription()
41 protected void initDescription() {
42 description
= SpecimenDescription
.NewInstance(element
);