/**\r
* Copyright (C) 2011 EDIT\r
-* European Distributed Institute of Taxonomy \r
+* European Distributed Institute of Taxonomy\r
* http://www.e-taxonomy.eu\r
-* \r
+*\r
* The contents of this file are subject to the Mozilla Public License Version 1.1\r
* See LICENSE.TXT at the top of this package for the full license terms.\r
*/\r
package eu.etaxonomy.taxeditor.editor.view.uses.operation;\r
\r
-import java.util.UUID;\r
-\r
import org.eclipse.core.commands.ExecutionException;\r
import org.eclipse.core.commands.operations.IUndoContext;\r
import org.eclipse.core.runtime.IAdaptable;\r
\r
/**\r
* CreateTaxonUseOperation Class\r
- * @author a.theys \r
+ * @author a.theys\r
* @created mar 13, 2012\r
* @version 1.0\r
*/\r
Taxon taxon, IPostOperationEnabled postOperationEnabled, boolean isImageGallery) {\r
super(label, undoContext, taxon, postOperationEnabled);\r
}\r
- \r
+\r
/* (non-Javadoc)\r
* @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)\r
*/\r
@Override\r
public IStatus execute(IProgressMonitor monitor, IAdaptable info)\r
throws ExecutionException {\r
- \r
- description = TaxonDescription.NewInstance(taxon);\r
+\r
+ description = TaxonDescription.NewInstance(element);\r
monitor.worked(20);\r
MarkerType useMarkerType = (MarkerType) CdmStore.getService(ITermService.class).find(UsageTermCollection.uuidUseMarkerType);\r
marker = Marker.NewInstance(useMarkerType, true);\r