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.TaxonDescription;
|
14
|
import eu.etaxonomy.cdm.model.taxon.Taxon;
|
15
|
import eu.etaxonomy.taxeditor.operation.AbstractDescriptionPostOperation;
|
16
|
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
|
17
|
|
18
|
/**
|
19
|
* @author pplitzner
|
20
|
* @date 04.12.2013
|
21
|
*
|
22
|
*/
|
23
|
public class CreateTaxonDescriptionOperation extends AbstractDescriptionPostOperation<Taxon, TaxonDescription> {
|
24
|
|
25
|
/**
|
26
|
* @param label
|
27
|
* @param undoContext
|
28
|
* @param describable
|
29
|
* @param postOperationEnabled
|
30
|
* @param isImageGallery
|
31
|
*/
|
32
|
public CreateTaxonDescriptionOperation(String label, IUndoContext undoContext, Taxon describable, IPostOperationEnabled postOperationEnabled) {
|
33
|
super(label, undoContext, describable, postOperationEnabled, false);
|
34
|
}
|
35
|
|
36
|
/**
|
37
|
* @param label
|
38
|
* @param undoContext
|
39
|
* @param describable
|
40
|
* @param postOperationEnabled
|
41
|
* @param isImageGallery
|
42
|
*/
|
43
|
public CreateTaxonDescriptionOperation(String label, IUndoContext undoContext, Taxon describable, IPostOperationEnabled postOperationEnabled, boolean isImageGallery) {
|
44
|
super(label, undoContext, describable, postOperationEnabled, isImageGallery);
|
45
|
}
|
46
|
|
47
|
@Override
|
48
|
protected void initDescription(){
|
49
|
description = TaxonDescription.NewInstance(element);
|
50
|
}
|
51
|
}
|