/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
* @version 1.0
*/
public class DeleteTaxonDescriptionOperation extends AbstractPostTaxonOperation {
-
- private TaxonDescription description;
+
+ private final TaxonDescription description;
/**
* <p>Constructor for DeleteTaxonDescriptionOperation.</p>
public DeleteTaxonDescriptionOperation(String label, IUndoContext undoContext,
TaxonDescription description, IPostOperationEnabled postOperationEnabled) {
super(label, undoContext, postOperationEnabled);
-
+
this.description = description;
- taxon = description.getTaxon();
+ element = description.getTaxon();
}
/* (non-Javadoc)
throws ExecutionException {
monitor.worked(20);
- taxon.removeDescription(description);
+ element.removeDescription(description);
monitor.worked(40);
return postExecute(description);
public IStatus undo(IProgressMonitor monitor, IAdaptable info)
throws ExecutionException {
- taxon.addDescription(description);
-
+ element.addDescription(description);
+
return postExecute(null);
}
}