1
|
/**
|
2
|
* Copyright (C) 2015 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
|
*/
|
9
|
package eu.etaxonomy.taxeditor.navigation.key.polytomous.handler;
|
10
|
|
11
|
import org.eclipse.core.commands.ExecutionEvent;
|
12
|
import org.eclipse.core.commands.operations.AbstractOperation;
|
13
|
import org.eclipse.core.runtime.IStatus;
|
14
|
import org.eclipse.core.runtime.Status;
|
15
|
|
16
|
import eu.etaxonomy.taxeditor.navigation.key.polytomous.PolytomousKeyViewLabels;
|
17
|
import eu.etaxonomy.taxeditor.navigation.key.polytomous.operation.RemotingUpdatePolytomousKeyAllNodesOperation;
|
18
|
import eu.etaxonomy.taxeditor.operation.RemotingCdmHandler;
|
19
|
|
20
|
/**
|
21
|
* @author cmathew
|
22
|
* @date 29 Jun 2015
|
23
|
*
|
24
|
*/
|
25
|
public class RemotingUpdatePolytomousKeyAllNodesHandler extends RemotingCdmHandler {
|
26
|
|
27
|
/**
|
28
|
* @param label
|
29
|
*/
|
30
|
public RemotingUpdatePolytomousKeyAllNodesHandler() {
|
31
|
super(PolytomousKeyViewLabels.UPDATE_ALL_POLYTOMOUS_KEY_NODES_LABEL);
|
32
|
}
|
33
|
|
34
|
/* (non-Javadoc)
|
35
|
* @see eu.etaxonomy.taxeditor.operation.RemotingCdmHandler#allowOperations(org.eclipse.core.commands.ExecutionEvent)
|
36
|
*/
|
37
|
@Override
|
38
|
public IStatus allowOperations(ExecutionEvent event) {
|
39
|
return Status.OK_STATUS;
|
40
|
}
|
41
|
|
42
|
/* (non-Javadoc)
|
43
|
* @see eu.etaxonomy.taxeditor.operation.RemotingCdmHandler#prepareOperation(org.eclipse.core.commands.ExecutionEvent)
|
44
|
*/
|
45
|
@Override
|
46
|
public AbstractOperation prepareOperation(ExecutionEvent event) {
|
47
|
return new RemotingUpdatePolytomousKeyAllNodesOperation(event.getTrigger(), false);
|
48
|
}
|
49
|
|
50
|
/* (non-Javadoc)
|
51
|
* @see eu.etaxonomy.taxeditor.operation.RemotingCdmHandler#onComplete()
|
52
|
*/
|
53
|
@Override
|
54
|
public void onComplete() {
|
55
|
// TODO Auto-generated method stub
|
56
|
|
57
|
}
|
58
|
|
59
|
}
|