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