Revision 5e838349
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/e4/handler/RefreshNodeNumberingHandlerE4.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2007 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
1 | 9 |
package eu.etaxonomy.taxeditor.editor.key.polytomous.e4.handler; |
2 | 10 |
|
3 | 11 |
import javax.inject.Named; |
... | ... | |
16 | 24 |
import eu.etaxonomy.taxeditor.editor.key.polytomous.e4.PolytomousKeyListEditorE4; |
17 | 25 |
import eu.etaxonomy.taxeditor.editor.key.polytomous.operation.RefreshNodeNumberingOperation; |
18 | 26 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
19 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
|
20 | 27 |
|
21 | 28 |
public class RefreshNodeNumberingHandlerE4 { |
22 | 29 |
|
... | ... | |
35 | 42 |
PolytomousKeyNode keyNode = (PolytomousKeyNode) selection |
36 | 43 |
.getFirstElement(); |
37 | 44 |
|
38 |
AbstractPostOperation operation = new RefreshNodeNumberingOperation(
|
|
45 |
RefreshNodeNumberingOperation operation = new RefreshNodeNumberingOperation(
|
|
39 | 46 |
label, undoContext, keyNode, editor); |
40 | 47 |
AbstractUtility.executeOperation(operation, sync); |
41 | 48 |
editor.forceDirty(); |
... | ... | |
50 | 57 |
menuItem.setVisible(canExecute); |
51 | 58 |
return canExecute; |
52 | 59 |
} |
53 |
} |
|
60 |
} |
Also available in: Unified diff
cleanup