-// $Id$\r
/**\r
* Copyright (C) 2009 EDIT\r
* European Distributed Institute of Taxonomy \r
\r
import org.eclipse.core.commands.ExecutionException;\r
import org.eclipse.core.commands.operations.IUndoContext;\r
-\r
-import eu.etaxonomy.cdm.model.taxon.TaxonNode;\r
-import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;\r
-import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;\r
-\r
import org.eclipse.core.runtime.IAdaptable;\r
import org.eclipse.core.runtime.IProgressMonitor;\r
import org.eclipse.core.runtime.IStatus;\r
import org.eclipse.swt.dnd.TextTransfer;\r
import org.eclipse.swt.dnd.Transfer;\r
\r
+import eu.etaxonomy.cdm.model.taxon.TaxonNode;\r
+import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation;\r
+import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;\r
+\r
\r
/**\r
* @author l.morris\r
* @date 23 Jan 2012\r
*\r
*/\r
-public class CopyOperation extends AbstractPostOperation {\r
+public class CopyOperation extends AbstractPostTaxonOperation {\r
\r
/**\r
* @param label\r
public IStatus execute(IProgressMonitor monitor, IAdaptable info)\r
throws ExecutionException {\r
\r
- String name = taxonNode.getTaxon().getName().getTitleCache();\r
+ String name = ((TaxonNode)taxonNode).getTaxon().getName().getTitleCache();\r
\r
final Clipboard cb = new Clipboard(null);\r
TextTransfer textTransfer = TextTransfer.getInstance();\r
\r
cb.setContents(new Object[]{name}, transfers);\r
\r
- return postExecute(taxonNode); \r
+ return postExecute(((TaxonNode)taxonNode)); \r
//return null;\r
}\r
\r