Project

General

Profile

« Previous | Next » 

Revision bcdc7df3

Added by Katja Luther over 9 years ago

adaption for error handling of delete methods

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/SelectFeatureTreeWizardPage.java
31 31
import org.eclipse.swt.widgets.Label;
32 32
import org.eclipse.swt.widgets.Text;
33 33

  
34
import eu.etaxonomy.cdm.api.service.DeleteResult;
34 35
import eu.etaxonomy.cdm.api.service.IFeatureTreeService;
35 36
import eu.etaxonomy.cdm.api.service.exception.DataChangeNoRollbackException;
36 37
import eu.etaxonomy.cdm.model.description.FeatureTree;
......
162 163
			for(Object element : selection.toArray()){
163 164
				viewer.remove(element);
164 165
				
165
				String result =	CdmStore.getService(IFeatureTreeService.class).delete((FeatureTree) element);
166
				DeleteResult result =	CdmStore.getService(IFeatureTreeService.class).delete((FeatureTree) element);
166 167
				
168
				if (result.isError()){
169
					
170
				}
167 171
				viewer.setSelection(new StructuredSelection(new Object[0]));
168 172
			}
169 173
		}

Also available in: Unified diff