Merge branch 'develop' into remoting-4.0
[taxeditor.git] / eu.etaxonomy.taxeditor.navigation / src / main / java / eu / etaxonomy / taxeditor / navigation / key / polytomous / handler / RemotingUpdatePolytomousKeyAllNodesHandler.java
1 // $Id$
2 /**
3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.taxeditor.navigation.key.polytomous.handler;
11
12 import org.eclipse.core.commands.ExecutionEvent;
13 import org.eclipse.core.commands.operations.AbstractOperation;
14 import org.eclipse.core.runtime.IStatus;
15 import org.eclipse.core.runtime.Status;
16
17 import eu.etaxonomy.taxeditor.navigation.key.polytomous.PolytomousKeyViewLabels;
18 import eu.etaxonomy.taxeditor.navigation.key.polytomous.operation.RemotingUpdatePolytomousKeyAllNodesOperation;
19 import eu.etaxonomy.taxeditor.operation.RemotingCdmHandler;
20
21 /**
22 * @author cmathew
23 * @date 29 Jun 2015
24 *
25 */
26 public class RemotingUpdatePolytomousKeyAllNodesHandler extends RemotingCdmHandler {
27
28 /**
29 * @param label
30 */
31 public RemotingUpdatePolytomousKeyAllNodesHandler() {
32 super(PolytomousKeyViewLabels.UPDATE_ALL_POLYTOMOUS_KEY_NODES_LABEL);
33 }
34
35 /* (non-Javadoc)
36 * @see eu.etaxonomy.taxeditor.operation.RemotingCdmHandler#allowOperations(org.eclipse.core.commands.ExecutionEvent)
37 */
38 @Override
39 public IStatus allowOperations(ExecutionEvent event) {
40 return Status.OK_STATUS;
41 }
42
43 /* (non-Javadoc)
44 * @see eu.etaxonomy.taxeditor.operation.RemotingCdmHandler#prepareOperation(org.eclipse.core.commands.ExecutionEvent)
45 */
46 @Override
47 public AbstractOperation prepareOperation(ExecutionEvent event) {
48 return new RemotingUpdatePolytomousKeyAllNodesOperation(event.getTrigger(), false);
49 }
50
51 /* (non-Javadoc)
52 * @see eu.etaxonomy.taxeditor.operation.RemotingCdmHandler#onComplete()
53 */
54 @Override
55 public void onComplete() {
56 // TODO Auto-generated method stub
57
58 }
59
60 }