Revision 8481f952
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/operation/DeleteConceptRelationOperation.java | ||
---|---|---|
28 | 28 |
* @author p.ciardelli |
29 | 29 |
* @author n.hoffmann |
30 | 30 |
* @created 29.01.2009 |
31 |
* @version 1.0 |
|
32 | 31 |
*/ |
33 | 32 |
public class DeleteConceptRelationOperation extends AbstractPostTaxonOperation { |
34 | 33 |
|
35 | 34 |
private final Set<TaxonRelationship> taxonRelationships; |
36 | 35 |
|
37 |
|
|
38 |
/** |
|
39 |
* @param name |
|
40 |
* @param undoContext |
|
41 |
* @param relation |
|
42 |
* @param postOperationEnabled |
|
43 |
*/ |
|
44 | 36 |
public DeleteConceptRelationOperation(String label, |
45 | 37 |
IUndoContext undoContext, Taxon taxon, Set<TaxonRelationship> relations, |
46 | 38 |
IPostOperationEnabled postOperationEnabled) { |
... | ... | |
49 | 41 |
taxonRelationships = relations; |
50 | 42 |
} |
51 | 43 |
|
52 |
/* (non-Javadoc) |
|
53 |
* @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) |
|
54 |
*/ |
|
55 |
/** {@inheritDoc} */ |
|
56 | 44 |
@Override |
57 | 45 |
public IStatus execute(IProgressMonitor monitor, IAdaptable info) |
58 | 46 |
throws ExecutionException { |
... | ... | |
69 | 57 |
return postExecute(element); |
70 | 58 |
} |
71 | 59 |
|
72 |
/* (non-Javadoc) |
|
73 |
* @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) |
|
74 |
*/ |
|
75 |
/** {@inheritDoc} */ |
|
76 | 60 |
@Override |
77 | 61 |
public IStatus redo(IProgressMonitor monitor, IAdaptable info) |
78 | 62 |
throws ExecutionException { |
79 | 63 |
return execute(monitor, info); |
80 | 64 |
} |
81 | 65 |
|
82 |
/* (non-Javadoc) |
|
83 |
* @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) |
|
84 |
*/ |
|
85 |
/** {@inheritDoc} */ |
|
86 | 66 |
@Override |
87 | 67 |
public IStatus undo(IProgressMonitor monitor, IAdaptable info) |
88 | 68 |
throws ExecutionException { |
Also available in: Unified diff
cleanup