Revision b8da2ad7
Added by Katja Luther about 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/DeleteAllEmptyNamesHandler.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2007 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
... | ... | |
33 | 33 |
TaxonNameEditor editor = (TaxonNameEditor) EditorUtil.getActiveEditorPage(Page.NAME); |
34 | 34 |
|
35 | 35 |
for(AbstractGroupedContainer<TaxonBase> containerWithEmptyName : editor.getEmptyContainers()){ |
36 |
editor.removeGroup(containerWithEmptyName.getGroup()); |
|
36 | 37 |
doExecute(event, editor, containerWithEmptyName.getData()); |
37 | 38 |
} |
38 |
|
|
39 |
|
|
39 | 40 |
return null; |
40 | 41 |
} |
41 | 42 |
|
Also available in: Unified diff
fix #6424: check if name is already persisted before trying to delete