Revision ccae8112
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/TaxonEditorInput.java | ||
---|---|---|
29 | 29 |
import eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorSortProvider; |
30 | 30 |
import eu.etaxonomy.taxeditor.bulkeditor.input.entitycreator.TaxonCreator; |
31 | 31 |
import eu.etaxonomy.taxeditor.bulkeditor.input.sortprovider.IdentifiableEntitySortProvider; |
32 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
32 | 33 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
33 | 34 |
|
34 | 35 |
public class TaxonEditorInput extends AbstractBulkEditorInput<TaxonBase>{ |
... | ... | |
165 | 166 |
|
166 | 167 |
@Override |
167 | 168 |
public void addSaveCandidate(TaxonBase taxonBase){ |
169 |
if (taxonBase == null){ |
|
170 |
MessagingUtils.info("The focus on the selected taxon was lost somehow, please try again."); |
|
171 |
return; |
|
172 |
} |
|
168 | 173 |
if (!taxonBase.getName().getHybridChildRelations().isEmpty()){ |
169 | 174 |
for (HybridRelationship rel: taxonBase.getName().getHybridChildRelations()){ |
170 | 175 |
if (!rel.getParentName().isPersited()){ |
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java | ||
---|---|---|
77 | 77 |
public static String MergeGroupHandler_cancel; |
78 | 78 |
public static String MergeGroupHandler_SaveChanges; |
79 | 79 |
public static String MergeGroupHandler_description; |
80 |
public static String TAXON_EDITOR_INPUT_Selection_lost; |
|
80 | 81 |
|
81 | 82 |
static { |
82 | 83 |
// initialize resource bundle |
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties | ||
---|---|---|
24 | 24 |
BulkEditorTooltip_CANDIDATE=Candidate for duplicate removal |
25 | 25 |
BulkEditorTooltip_TARGET=Target for duplicate removal |
26 | 26 |
|
27 |
TAXON_EDITOR_INPUT_Selection_lost=The selection in bulkeditor is somehow lost, please try again. |
|
28 |
|
|
27 | 29 |
USER_CREATOR_user_exists_title=The user already exists |
28 | 30 |
USER_CREATOR_user_exists=The user already exists in database |
29 | 31 |
USER_CREATOR_Acces_denied=Access denied |
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties | ||
---|---|---|
24 | 24 |
BulkEditorTooltip_CANDIDATE= Kandidat f?r Duplikatenentfernung |
25 | 25 |
BulkEditorTooltip_TARGET=Ziel f?r Duplikatenentfernung |
26 | 26 |
|
27 |
TAXON_EDITOR_INPUT_Selection_lost=Die Auswahl im Bulkeditor ist verloren gegangen, bitte versuchen Sie es erneut. |
|
28 |
|
|
27 | 29 |
USER_CREATOR_user_exists_title=Der Benutzer existiert bereits |
28 | 30 |
USER_CREATOR_user_exists=Der Benutzer existiert bereits in der Datenbank. |
29 | 31 |
USER_CREATOR_Acces_denied=Access denied |
Also available in: Unified diff
ref #9690: show message when selection of bulk editor is not available