Project

General

Profile

Revision bd0c87e3

IDbd0c87e3a81b67e2ef23ed115c910bf34e8c292e
Parent feef82e2
Child 43c739f3

Added by Katja Luther over 1 year ago

ref #3276:minor

View differences:

eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin.properties
51 51
command.label.27 = New Factual Data Set
52 52
menu.label.1 = New
53 53
command.label.28 = Move Factual Data to Other Taxon
54
command.label.29 = Move Fact to Other Taxon
54
command.label.29 = Move Fact(s) to Other Taxon
55 55
command.label.30 = Delete
56 56
command.label.31 = Save
57 57
menu.label.2 = New Derivative
eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/plugin_de.properties
51 51
command.label.27 = Neues Faktendaten-Set
52 52
menu.label.1 = Neue
53 53
command.label.28 = Verschiebe Faktendaten zu anderem Taxon
54
command.label.29 = Verschiebe Fakt zu anderem Taxon
54
command.label.29 = Verschiebe Fakt(en) zu anderem Taxon
55 55
command.label.30 = L\u00f6schen
56 56
command.label.31 = Speichern
57 57
menu.label.2 = Neue Derivate
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/handler/MoveDescriptionToOtherTaxonHandlerE4.java
202 202
            if(selection instanceof IStructuredSelection){
203 203
                Object firstElement = ((IStructuredSelection) selection).getFirstElement();
204 204
                canExecute = ((IStructuredSelection) selection).size()==1
205
                        &&
206
                        (firstElement instanceof FeatureNodeContainer
207
                        || firstElement instanceof DescriptionBase);
205
                        && firstElement instanceof DescriptionBase;
208 206
                menuItem.setVisible(canExecute);
209 207
            }
210 208
        }
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/DeleteTaxonDescriptionOperation.java
14 14
import org.eclipse.core.runtime.IAdaptable;
15 15
import org.eclipse.core.runtime.IProgressMonitor;
16 16
import org.eclipse.core.runtime.IStatus;
17
import org.eclipse.core.runtime.Status;
17 18

  
18 19
import eu.etaxonomy.cdm.api.service.IDescriptionService;
19 20
import eu.etaxonomy.cdm.model.description.TaxonDescription;
......
62 63
			throws ExecutionException {
63 64

  
64 65
		monitor.worked(20);
65
		if (description != null){
66
		if (description != null && description.isPersited()){
66 67
//		    element.removeDescription(description);
67 68
		    CdmStore.getService(IDescriptionService.class).deleteDescription(description.getUuid());
68 69
			return postExecute(element);
70
		}else if (description != null && !description.isPersited()){
71
		    element.removeDescription(description);
72
		    return Status.OK_STATUS;
69 73
		}
70 74
		return null;
71 75

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)