Revision 324d38f7
Added by Alex Theys about 12 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/uses/handler/CreateUseHandler.java | ||
---|---|---|
17 | 17 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
18 | 18 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
19 | 19 |
|
20 |
/** |
|
21 |
* The context manager mediates context start/stop and workbench shutdowns to all registered listeners. |
|
22 |
* |
|
23 |
* @author a.theys |
|
24 |
* @created mar 13, 2012 |
|
25 |
* @version 1.0 |
|
26 |
*/ |
|
20 | 27 |
public class CreateUseHandler extends AbstractHandler { |
21 | 28 |
/* (non-Javadoc) |
22 | 29 |
* @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) |
... | ... | |
36 | 43 |
Taxon taxon = ((TaxonEditorInput) input).getTaxon(); |
37 | 44 |
AbstractPostOperation operation; |
38 | 45 |
try { |
39 |
// TODO use undo context specific to editor |
|
40 | 46 |
operation = new CreateTaxonUseOperation(event.getCommand().getName(), |
41 | 47 |
EditorUtil.getUndoContext(), taxon, postOperationEnabled); |
42 | 48 |
EditorUtil.executeOperation(operation); |
Also available in: Unified diff
AT: committing latest changes to the Tax Editor after a first round of Code review