2 * Copyright (C) 2013 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.taxeditor
.editor
.view
.descriptive
.operation
;
11 import org
.eclipse
.core
.commands
.operations
.IUndoContext
;
13 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
14 import eu
.etaxonomy
.cdm
.model
.description
.TaxonDescription
;
15 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
16 import eu
.etaxonomy
.taxeditor
.operation
.AbstractDescriptionPostOperation
;
17 import eu
.etaxonomy
.taxeditor
.operation
.IPostOperationEnabled
;
24 public class CreateTaxonDescriptionOperation
extends AbstractDescriptionPostOperation
<Taxon
, TaxonDescription
> {
26 public CreateTaxonDescriptionOperation(String label
, IUndoContext undoContext
, Taxon describable
,
27 IdentifiableSource source
, IPostOperationEnabled postOperationEnabled
) {
28 super(label
, undoContext
, describable
, source
, postOperationEnabled
, false);
31 public CreateTaxonDescriptionOperation(String label
, IUndoContext undoContext
, Taxon describable
,
32 IdentifiableSource source
, IPostOperationEnabled postOperationEnabled
, boolean isImageGallery
) {
33 super(label
, undoContext
, describable
, source
, postOperationEnabled
, isImageGallery
);
37 protected void initDescription(){
38 description
= TaxonDescription
.NewInstance(element
);