1
|
package eu.etaxonomy.taxeditor.editor.name.operation;
|
2
|
|
3
|
import org.eclipse.core.commands.ExecutionException;
|
4
|
import org.eclipse.core.commands.operations.IUndoContext;
|
5
|
import org.eclipse.core.runtime.IAdaptable;
|
6
|
import org.eclipse.core.runtime.IProgressMonitor;
|
7
|
import org.eclipse.core.runtime.IStatus;
|
8
|
|
9
|
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
|
10
|
import eu.etaxonomy.cdm.api.service.DeleteResult;
|
11
|
import eu.etaxonomy.cdm.api.service.config.TaxonBaseDeletionConfigurator;
|
12
|
import eu.etaxonomy.taxeditor.operation.AbstractPersistentPostOperation;
|
13
|
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
|
14
|
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
|
15
|
|
16
|
public class DeleteTaxonBaseOperation extends AbstractPersistentPostOperation {
|
17
|
|
18
|
protected TaxonBaseDeletionConfigurator configurator;
|
19
|
protected DeleteResult result;
|
20
|
|
21
|
public DeleteTaxonBaseOperation(String label,
|
22
|
IUndoContext undoContext,
|
23
|
TaxonBaseDeletionConfigurator configurator,
|
24
|
IPostOperationEnabled postOperationEnabled,
|
25
|
IConversationEnabled conversationEnabled,
|
26
|
ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
|
27
|
super(label, undoContext, postOperationEnabled, conversationEnabled, cdmEntitySessionEnabled);
|
28
|
this.configurator = configurator;
|
29
|
|
30
|
}
|
31
|
|
32
|
@Override
|
33
|
public IStatus execute(IProgressMonitor monitor, IAdaptable info)
|
34
|
throws ExecutionException {
|
35
|
// TODO Auto-generated method stub
|
36
|
return null;
|
37
|
}
|
38
|
|
39
|
@Override
|
40
|
public IStatus redo(IProgressMonitor monitor, IAdaptable info)
|
41
|
throws ExecutionException {
|
42
|
// TODO Auto-generated method stub
|
43
|
return null;
|
44
|
}
|
45
|
|
46
|
@Override
|
47
|
public IStatus undo(IProgressMonitor monitor, IAdaptable info)
|
48
|
throws ExecutionException {
|
49
|
// TODO Auto-generated method stub
|
50
|
return null;
|
51
|
}
|
52
|
|
53
|
public DeleteResult getResult(){
|
54
|
return result;
|
55
|
}
|
56
|
}
|