Revision 8481f952
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeHomotypicalGroupBasionymOperation.java | ||
---|---|---|
33 | 33 |
*/ |
34 | 34 |
public class ChangeHomotypicalGroupBasionymOperation extends |
35 | 35 |
AbstractPostTaxonOperation { |
36 |
|
|
37 |
private final TaxonBase taxonBase; |
|
36 |
|
|
37 |
private final TaxonBase<?> taxonBase;
|
|
38 | 38 |
|
39 | 39 |
/** |
40 | 40 |
* <p>Constructor for ChangeHomotypicalGroupBasionymOperation.</p> |
... | ... | |
52 | 52 |
this.taxonBase = taxonBase; |
53 | 53 |
} |
54 | 54 |
|
55 |
/** {@inheritDoc} */ |
|
56 | 55 |
@Override |
57 | 56 |
public IStatus execute(IProgressMonitor monitor, IAdaptable info) |
58 | 57 |
throws ExecutionException { |
... | ... | |
71 | 70 |
if (oldBasionym != null){ |
72 | 71 |
Set<TaxonBase> taxonBases = oldBasionym.getTaxonBases(); |
73 | 72 |
if (!taxonBases.isEmpty()){ |
74 |
TaxonBase oldBasionymTaxonBase = taxonBases.iterator().next(); |
|
73 |
TaxonBase<?> oldBasionymTaxonBase = taxonBases.iterator().next();
|
|
75 | 74 |
postExecute(oldBasionymTaxonBase); |
76 | 75 |
} |
77 | 76 |
} |
... | ... | |
79 | 78 |
return postExecute(taxonBase); |
80 | 79 |
} |
81 | 80 |
|
82 |
/** {@inheritDoc} */ |
|
83 | 81 |
@Override |
84 | 82 |
public IStatus redo(IProgressMonitor monitor, IAdaptable info) |
85 | 83 |
throws ExecutionException { |
86 | 84 |
return execute(monitor, info); |
87 | 85 |
} |
88 | 86 |
|
89 |
/** {@inheritDoc} */ |
|
90 | 87 |
@Override |
91 | 88 |
public IStatus undo(IProgressMonitor monitor, IAdaptable info) |
92 | 89 |
throws ExecutionException { |
Also available in: Unified diff
cleanup