Revision b5b429af
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/handler/CreateDescriptionHandler.java | ||
---|---|---|
25 | 25 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.e4.FactualDataPartE4; |
26 | 26 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.CreateSpecimenDescriptionOperation; |
27 | 27 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.CreateTaxonDescriptionOperation; |
28 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
|
29 | 28 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
30 | 29 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
31 | 30 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
... | ... | |
60 | 59 |
Taxon taxon = ((TaxonEditorInput) input).getTaxon(); |
61 | 60 |
try { |
62 | 61 |
operation = createTaxonOperation(event.getCommand().getName(), taxon, postOperationEnabled); |
63 |
AbstractUtility.executeOperation(operation); |
|
64 | 62 |
} catch (NotDefinedException e) { |
65 | 63 |
MessagingUtils.warn(getClass(), "Command name not set."); //$NON-NLS-1$ |
66 | 64 |
} |
... | ... | |
71 | 69 |
if(viewerInput instanceof SpecimenOrObservationBase<?>){ |
72 | 70 |
try { |
73 | 71 |
operation = new CreateSpecimenDescriptionOperation(event.getCommand().getName(), EditorUtil.getUndoContext(), (SpecimenOrObservationBase<?>) viewerInput, postOperationEnabled); |
74 |
AbstractUtility.executeOperation(operation); |
|
75 | 72 |
} catch (NotDefinedException e) { |
76 | 73 |
MessagingUtils.warn(getClass(), "Command name not set."); //$NON-NLS-1$ |
77 | 74 |
} |
Also available in: Unified diff
ref #6925 Inject context into operations to allow sync/async execution