Revision b5b429af
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/handler/CreateTermVocabularyHandler.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2009 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
... | ... | |
46 | 46 |
String label = event.getCommand().getName(); |
47 | 47 |
IUndoContext undoContext = StoreUtil.getUndoContext(); |
48 | 48 |
|
49 |
AbstractPostOperation operation = |
|
50 |
new CreateTermVocabularyOperation(label, |
|
51 |
undoContext, |
|
52 |
dfe.getDefinedTermEditorInput(), |
|
53 |
(DefinedTermEditor) editor); |
|
54 |
StoreUtil.executeOperation(operation); |
|
49 |
AbstractPostOperation operation = |
|
50 |
new CreateTermVocabularyOperation(label, |
|
51 |
undoContext, |
|
52 |
dfe.getDefinedTermEditorInput(), |
|
53 |
editor); |
|
55 | 54 |
|
56 | 55 |
} catch (NotDefinedException e) { |
57 | 56 |
MessagingUtils.error(getClass(), e); |
58 |
}
|
|
57 |
} |
|
59 | 58 |
} |
60 | 59 |
return null; |
61 | 60 |
} |
Also available in: Unified diff
ref #6925 Inject context into operations to allow sync/async execution