Project

General

Profile

« Previous | Next » 

Revision b5b429af

Added by Patrick Plitzner over 6 years ago

ref #6925 Inject context into operations to allow sync/async execution

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/handler/CreateDescriptionElementHandler.java
25 25
import eu.etaxonomy.cdm.model.description.Feature;
26 26
import eu.etaxonomy.taxeditor.editor.EditorUtil;
27 27
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.CreateDescriptionElementOperation;
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;
......
74 73
            try {
75 74
                // TODO use undo context specific to editor
76 75
                operation = operationCreationInstance(event.getCommand().getName(), event, description, postOperationEnabled);
77
                AbstractUtility.executeOperation(operation);
78 76
            } catch (NotDefinedException e) {
79 77
                MessagingUtils.warn(getClass(), "Command name not set"); //$NON-NLS-1$
80 78
            }

Also available in: Unified diff