Project

General

Profile

Download (1.23 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2019 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.DescriptionBase;
14
import eu.etaxonomy.cdm.model.description.TaxonNameDescription;
15
import eu.etaxonomy.cdm.model.name.TaxonName;
16
import eu.etaxonomy.taxeditor.operation.AbstractDescriptionPostOperation;
17
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
18

    
19
/**
20
 * @author k.luther
21
 * @since 25 Jan 2019
22
 *
23
 */
24
public class CreateNamedescriptionOperation extends AbstractDescriptionPostOperation<TaxonName, DescriptionBase> {
25

    
26
    public CreateNamedescriptionOperation(String label, IUndoContext undoContext, TaxonName describable, IPostOperationEnabled postOperationEnabled) {
27
        super(label, undoContext, describable, null, postOperationEnabled);
28
    }
29

    
30

    
31
    /**
32
     * {@inheritDoc}
33
     */
34
    @Override
35
    protected void initDescription() {
36
        description = TaxonNameDescription.NewInstance(element);
37

    
38
    }
39

    
40
}
(3-3/10)