\r
import org.apache.log4j.Logger;\r
import org.eclipse.core.commands.ExecutionException;\r
-import org.eclipse.core.commands.operations.AbstractOperation;\r
import org.eclipse.core.commands.operations.IUndoContext;\r
import org.eclipse.core.runtime.IAdaptable;\r
import org.eclipse.core.runtime.IProgressMonitor;\r
import eu.etaxonomy.taxeditor.model.CdmSessionDataRepository;\r
\r
/**\r
+ * Delete a taxon from the model.\r
+ * \r
+ * TODO: Currently all data in session data repository has to be saved before deleting \r
+ * a taxon and the whole logic is happening here. This way we would have to implement \r
+ * the same logic in another place if we want to delete outside of an operation context\r
+ * (NOT undoable). Therefore it is desirable to have the logic implemented in another \r
+ * place and merely call a method here.\r
+ * \r
* @author n.hoffmann\r
* @created 16.01.2009\r
* @version 1.0\r
*/\r
public class DeleteTaxonOperation extends AbstractEditorOperation {\r
+ \r
+ @SuppressWarnings("unused")\r
private static Logger logger = Logger.getLogger(DeleteTaxonOperation.class);\r
\r
+ /**\r
+ * The taxonomical parent of the taxon to be deleted.\r
+ */\r
private Taxon parentTaxon;\r
+ \r
public DeleteTaxonOperation(String text, IUndoContext undoContext,\r
Taxon taxon) {\r
super(text, undoContext, taxon);\r