Project

General

Profile

« Previous | Next » 

Revision d445b8eb

Added by Patrick Plitzner over 5 years ago

ref #7589 Update message for missing nodes for descriptions

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java
93 93
import eu.etaxonomy.cdm.model.description.SpecimenDescription;
94 94
import eu.etaxonomy.cdm.model.description.State;
95 95
import eu.etaxonomy.cdm.persistence.dto.SpecimenNodeWrapper;
96
import eu.etaxonomy.taxeditor.editor.internal.TaxeditorEditorPlugin;
97 96
import eu.etaxonomy.taxeditor.editor.l10n.Messages;
98 97
import eu.etaxonomy.taxeditor.model.MessagingUtils;
99 98
import eu.etaxonomy.taxeditor.store.CdmStore;
......
556 555
                        String collect = rowsWithoutTaxonNode.stream().
557 556
                        map(row->row.getSpecimenDescription().toString())
558 557
                        .collect(Collectors.joining("\n\n - ")); //$NON-NLS-1$
559
                        MessagingUtils.errorDialog(Messages.CharacterMatrix_NO_NODE_FOUND_TITLE, this.getClass(), Messages.CharacterMatrix_NO_NODE_FOUND_MESSAGE+collect+"\n\n", TaxeditorEditorPlugin.PLUGIN_ID, null, false); //$NON-NLS-3$
558
                        MessagingUtils.warningDialog(
559
                                Messages.CharacterMatrix_NO_NODE_FOUND_TITLE,
560
                                this.getClass(),
561
                                String.format(Messages.CharacterMatrix_NO_NODE_FOUND_MESSAGE, collect)
562
                                );
560 563
                    }
561 564
                    wrappers.stream().filter(row->row.getTaxonNode()!=null).forEach(wrapper->CharacterMatrix.this.descriptions.add(wrapper));
562 565
                    loadingDone();
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/l10n/messages.properties
181 181
ChangeSynonymToAcceptedTaxonOperation_INCONSISTENT_DATA=Operation may lead to inconsistent data
182 182
ChangeSynonymToAcceptedTaxonOperation_NOT_IMPLEMENTED=Not yet implemented
183 183
CharacterMatrix_LOAD_CHARACTER_DATA=Load character data
184
CharacterMatrix_NO_NODE_FOUND_MESSAGE=Description(s) without taxon node:\n\n - 
184
CharacterMatrix_NO_NODE_FOUND_MESSAGE=Description(s) without taxon node:\n\n - %s\n\n You may delete them in the specimen editor.
185 185
CharacterMatrix_NO_NODE_FOUND_TITLE=Description(s) without taxon node found
186 186
CharacterMatrix_COLLAPSE=Collapse all
187 187
CharacterMatrix_COLLECTOR_NO=Collector + No
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/l10n/messages_de.properties
181 181
ChangeSynonymToAcceptedTaxonOperation_INCONSISTENT_DATA=Vorgang kann zu inkonsistenten Daten f?hren
182 182
ChangeSynonymToAcceptedTaxonOperation_NOT_IMPLEMENTED=Noch nicht implementiert
183 183
CharacterMatrix_LOAD_CHARACTER_DATA=Lade Character-Daten
184
CharacterMatrix_NO_NODE_FOUND_MESSAGE=Beschreibung(en) ohne Taxonknoten:\n\n - 
184
CharacterMatrix_NO_NODE_FOUND_MESSAGE=Beschreibung(en) ohne Taxonknoten:\n\n - %s\n\n Sie k?nnen mit dem Specimen-Editor gel?scht werden. 
185 185
CharacterMatrix_NO_NODE_FOUND_TITLE=Beschreibung(en) ohne Taxonknoten gefunden
186 186
CharacterMatrix_COLLAPSE=Alle einklappen
187 187
CharacterMatrix_COLLECTOR_NO=Sammler + Nr

Also available in: Unified diff