/**
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy
+ * http://www.e-taxonomy.eu
*
+ * The contents of this file are subject to the Mozilla Public License Version 1.1
+ * See LICENSE.TXT at the top of this package for the full license terms.
*/
package eu.etaxonomy.taxeditor.editor.key.polytomous.e4.handler;
import eu.etaxonomy.taxeditor.editor.key.polytomous.e4.PolytomousKeyListEditorE4;
import eu.etaxonomy.taxeditor.editor.key.polytomous.operation.CreateNodeOperation;
import eu.etaxonomy.taxeditor.model.AbstractUtility;
-import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
/**
*
* @author pplitzner
* @since Sep 28, 2017
- *
*/
public class CreateChildNodeHandlerE4 {
-
@Execute
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart,
@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection,
IUndoContext undoContext = EditorUtil.getUndoContext();
editor.changed(null);
- AbstractPostOperation operation = new CreateNodeOperation(
+ CreateNodeOperation operation = new CreateNodeOperation(
label, undoContext, pk.getRoot(), editor);
AbstractUtility.executeOperation(operation, sync);
} else {
PolytomousKeyNode keyNode = (PolytomousKeyNode) selection
.getFirstElement();
editor.changed(null);
- AbstractPostOperation operation = new CreateNodeOperation(
+ CreateNodeOperation operation = new CreateNodeOperation(
label, undoContext, keyNode, editor);
AbstractUtility.executeOperation(operation, sync);
}
menuItem.setVisible(canExecute);
return canExecute;
}
-
-}
+}
\ No newline at end of file
+/**
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy
+ * http://www.e-taxonomy.eu
+ *
+ * The contents of this file are subject to the Mozilla Public License Version 1.1
+ * See LICENSE.TXT at the top of this package for the full license terms.
+ */
package eu.etaxonomy.taxeditor.editor.key.polytomous.e4.handler;
import javax.inject.Named;
* Handler responsible for creating sibling nodes of Polytomous Key Nodes
*
* @author c.mathew
- *
*/
-
public class CreateSiblingNodeHandlerE4 {
@Execute
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.taxeditor.editor.key.polytomous.e4.handler;
import javax.inject.Named;
*/
public class DeleteNodeHandlerE4 extends CdmHandlerE4 {
-
private static final String DO_YOU_REALLY_WANT_TO_DELETE_THE_NODE_THIS_OPERATION_IS_NOT_REVERSABLE = Messages.DeleteNodeHandler_REALLY_DELETE;
private static final String CONFIRM_DELETION_OF_CHILDREN = Messages.DeleteNodeHandler_CONFIRM_DELETE;
private static final String NO = Messages.DeleteNodeHandler_NO;
-
+/**
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy
+ * http://www.e-taxonomy.eu
+ *
+ * The contents of this file are subject to the Mozilla Public License Version 1.1
+ * See LICENSE.TXT at the top of this package for the full license terms.
+ */
package eu.etaxonomy.taxeditor.editor.key.polytomous.e4.handler;
import javax.inject.Named;
+/**
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy
+ * http://www.e-taxonomy.eu
+ *
+ * The contents of this file are subject to the Mozilla Public License Version 1.1
+ * See LICENSE.TXT at the top of this package for the full license terms.
+ */
package eu.etaxonomy.taxeditor.editor.key.polytomous.e4.handler;
import javax.inject.Named;
import eu.etaxonomy.taxeditor.editor.key.polytomous.e4.PolytomousKeyListEditorE4;
import eu.etaxonomy.taxeditor.editor.key.polytomous.operation.RefreshNodeNumberingOperation;
import eu.etaxonomy.taxeditor.model.AbstractUtility;
-import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
public class RefreshNodeNumberingHandlerE4 {
PolytomousKeyNode keyNode = (PolytomousKeyNode) selection
.getFirstElement();
- AbstractPostOperation operation = new RefreshNodeNumberingOperation(
+ RefreshNodeNumberingOperation operation = new RefreshNodeNumberingOperation(
label, undoContext, keyNode, editor);
AbstractUtility.executeOperation(operation, sync);
editor.forceDirty();
menuItem.setVisible(canExecute);
return canExecute;
}
-}
+}
\ No newline at end of file