1 package eu
.etaxonomy
.taxeditor
.editor
.name
.operation
;
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 import org
.eclipse
.ui
.IWorkbenchPage
;
10 import eu
.etaxonomy
.cdm
.api
.conversation
.IConversationEnabled
;
11 import eu
.etaxonomy
.cdm
.api
.service
.DeleteResult
;
12 import eu
.etaxonomy
.cdm
.api
.service
.config
.TaxonBaseDeletionConfigurator
;
13 import eu
.etaxonomy
.taxeditor
.operation
.AbstractPersistentPostOperation
;
14 import eu
.etaxonomy
.taxeditor
.operation
.IPostOperationEnabled
;
15 import eu
.etaxonomy
.taxeditor
.session
.ICdmEntitySessionEnabled
;
17 public class DeleteTaxonBaseOperation
extends AbstractPersistentPostOperation
{
19 protected TaxonBaseDeletionConfigurator configurator
;
20 protected DeleteResult result
;
22 public DeleteTaxonBaseOperation(String label
,
23 IUndoContext undoContext
,
24 TaxonBaseDeletionConfigurator configurator
,
25 IWorkbenchPage activePage
,
26 IPostOperationEnabled postOperationEnabled
,
27 IConversationEnabled conversationEnabled
,
28 ICdmEntitySessionEnabled cdmEntitySessionEnabled
) {
29 super(label
, undoContext
, postOperationEnabled
, conversationEnabled
, cdmEntitySessionEnabled
);
30 this.configurator
= configurator
;
35 public IStatus
execute(IProgressMonitor monitor
, IAdaptable info
)
36 throws ExecutionException
{
37 // TODO Auto-generated method stub
42 public IStatus
redo(IProgressMonitor monitor
, IAdaptable info
)
43 throws ExecutionException
{
44 // TODO Auto-generated method stub
49 public IStatus
undo(IProgressMonitor monitor
, IAdaptable info
)
50 throws ExecutionException
{
51 // TODO Auto-generated method stub
55 public DeleteResult
getResult(){