Revision 3f8e87ed
Added by Katja Luther almost 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/SelectFeatureTreeWizardPage.java | ||
---|---|---|
161 | 161 |
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection(); |
162 | 162 |
for(Object element : selection.toArray()){ |
163 | 163 |
viewer.remove(element); |
164 |
try{ |
|
165 |
CdmStore.getService(IFeatureTreeService.class).delete((FeatureTree) element); |
|
166 |
} catch (DataChangeNoRollbackException d) { |
|
167 |
|
|
168 |
StoreUtil.warningDialog( |
|
169 |
"Feature can not be removed", |
|
170 |
this, |
|
171 |
"The selected feature can not be removed from the feature tree."); |
|
172 |
|
|
173 |
} |
|
164 |
|
|
165 |
String result = CdmStore.getService(IFeatureTreeService.class).delete((FeatureTree) element); |
|
166 |
|
|
174 | 167 |
viewer.setSelection(new StructuredSelection(new Object[0])); |
175 | 168 |
} |
176 | 169 |
} |
Also available in: Unified diff
adding a taxon bulk editor and changes because the delete methods does not throw exceptions anymore