Revision 953c844d
Added by Alex Theys almost 12 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/uses/operation/CreateUseSummaryOperation.java | ||
---|---|---|
6 | 6 |
import org.eclipse.core.runtime.IProgressMonitor; |
7 | 7 |
import org.eclipse.core.runtime.IStatus; |
8 | 8 |
|
9 |
import eu.etaxonomy.cdm.model.description.CategoricalData; |
|
10 |
import eu.etaxonomy.cdm.model.description.CommonTaxonName; |
|
11 | 9 |
import eu.etaxonomy.cdm.model.description.DescriptionElementBase; |
12 |
import eu.etaxonomy.cdm.model.description.Distribution; |
|
13 | 10 |
import eu.etaxonomy.cdm.model.description.Feature; |
14 |
import eu.etaxonomy.cdm.model.description.IndividualsAssociation; |
|
15 |
import eu.etaxonomy.cdm.model.description.QuantitativeData; |
|
16 | 11 |
import eu.etaxonomy.cdm.model.description.TaxonDescription; |
17 |
import eu.etaxonomy.cdm.model.description.TaxonInteraction; |
|
18 | 12 |
import eu.etaxonomy.cdm.model.description.TextData; |
19 | 13 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
20 | 14 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
... | ... | |
22 | 16 |
|
23 | 17 |
|
24 | 18 |
/** |
25 |
* The context manager mediates context start/stop and workbench shutdowns to all registered listeners. |
|
26 |
* |
|
19 |
* CreateUseSummaryOperation Class |
|
27 | 20 |
* @author a.theys |
28 | 21 |
* @created mar 13, 2012 |
29 | 22 |
* @version 1.0 |
... | ... | |
37 | 30 |
private DescriptionElementBase element; |
38 | 31 |
|
39 | 32 |
|
33 |
/** |
|
34 |
* <p>Constructor for CreateUseSummaryOperation.</p> |
|
35 |
* |
|
36 |
* @param label a {@link java.lang.String} object. |
|
37 |
* @param undoContext a {@link org.eclipse.core.commands.operations.IUndoContext} object. |
|
38 |
* @param taxon a {@link eu.etaxonomy.cdm.model.taxon.Taxon} object. |
|
39 |
* @param description a {@link eu.etaxonomy.cdm.model.description.TaxonDescription} object. |
|
40 |
* @param feature a {@link eu.etaxonomy.cdm.model.description.Feature} object. |
|
41 |
* @param postOperationEnabled a {@link eu.etaxonomy.taxeditor.operation.IPostOperationEnabled} object. |
|
42 |
*/ |
|
40 | 43 |
public CreateUseSummaryOperation(String label, IUndoContext undoContext, |
41 | 44 |
Taxon taxon, TaxonDescription description, Feature feature, IPostOperationEnabled postOperationEnabled) { |
42 | 45 |
super(label, undoContext, taxon, postOperationEnabled); |
... | ... | |
45 | 48 |
this.feature = feature; |
46 | 49 |
} |
47 | 50 |
|
51 |
/** |
|
52 |
* <p>Constructor for CreateUseSummaryOperation.</p> |
|
53 |
* |
|
54 |
* @param undoContext a {@link org.eclipse.core.commands.operations.IUndoContext} object. |
|
55 |
* @param taxon a {@link eu.etaxonomy.cdm.model.taxon.Taxon} object. |
|
56 |
* @param description a {@link eu.etaxonomy.cdm.model.description.TaxonDescription} object. |
|
57 |
* @param feature a {@link eu.etaxonomy.cdm.model.description.Feature} object. |
|
58 |
* @param element a {@link eu.etaxonomy.cdm.model.description.DescriptionElementBase} object. |
|
59 |
* @param postOperationEnabled a {@link eu.etaxonomy.taxeditor.operation.IPostOperationEnabled} object. |
|
60 |
* @param label a {@link java.lang.String} object. |
|
61 |
*/ |
|
48 | 62 |
public CreateUseSummaryOperation(String label, |
49 | 63 |
IUndoContext undoContext, Taxon taxon, |
50 | 64 |
TaxonDescription description, Feature feature, |
... | ... | |
54 | 68 |
this.element = element; |
55 | 69 |
} |
56 | 70 |
|
71 |
/** {@inheritDoc} */ |
|
57 | 72 |
@Override |
58 | 73 |
public IStatus execute(IProgressMonitor monitor, IAdaptable info) |
59 | 74 |
throws ExecutionException { |
Also available in: Unified diff
AT: committing changes to the TaxEditor Post second round of code review