command.label.27 = New Factual Data Set\r
menu.label.1 = New\r
command.label.28 = Move Factual Data to Other Taxon\r
-command.label.29 = Move Fact to Other Taxon\r
+command.label.29 = Move Fact(s) to Other Taxon\r
command.label.30 = Delete\r
command.label.31 = Save\r
menu.label.2 = New Derivative\r
command.label.27 = Neues Faktendaten-Set
menu.label.1 = Neue
command.label.28 = Verschiebe Faktendaten zu anderem Taxon
-command.label.29 = Verschiebe Fakt zu anderem Taxon
+command.label.29 = Verschiebe Fakt(en) zu anderem Taxon
command.label.30 = L\u00f6schen
command.label.31 = Speichern
menu.label.2 = Neue Derivate
if(selection instanceof IStructuredSelection){
Object firstElement = ((IStructuredSelection) selection).getFirstElement();
canExecute = ((IStructuredSelection) selection).size()==1
- &&
- (firstElement instanceof FeatureNodeContainer
- || firstElement instanceof DescriptionBase);
+ && firstElement instanceof DescriptionBase;
menuItem.setVisible(canExecute);
}
}
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import eu.etaxonomy.cdm.api.service.IDescriptionService;
import eu.etaxonomy.cdm.model.description.TaxonDescription;
throws ExecutionException {
monitor.worked(20);
- if (description != null){
+ if (description != null && description.isPersited()){
// element.removeDescription(description);
CdmStore.getService(IDescriptionService.class).deleteDescription(description.getUuid());
return postExecute(element);
+ }else if (description != null && !description.isPersited()){
+ element.removeDescription(description);
+ return Status.OK_STATUS;
}
return null;