Revision 7d3bda1d
Added by Patrick Plitzner over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NamedAreaSelectionDialog.java | ||
---|---|---|
30 | 30 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
31 | 31 |
import eu.etaxonomy.cdm.model.common.TermType; |
32 | 32 |
import eu.etaxonomy.cdm.model.common.TermVocabulary; |
33 |
import eu.etaxonomy.cdm.model.location.Country; |
|
34 | 33 |
import eu.etaxonomy.cdm.model.location.NamedArea; |
35 | 34 |
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache; |
35 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
36 | 36 |
import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard; |
37 | 37 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
38 | 38 |
|
... | ... | |
173 | 173 |
String result = NamedArea.labelWithLevel(namedArea, CdmStore.getDefaultLanguage()); |
174 | 174 |
return result; |
175 | 175 |
} catch (Exception e) { |
176 |
//TODO still need to learn how errors are handled in the Tax Editor |
|
177 |
System.out.println("Error occurred when trying retrieve title for Named Area: " + namedArea.getUuid()); |
|
176 |
MessagingUtils.error(NamedAreaSelectionDialog.class, "Error occurred when trying retrieve title for Named Area: " + namedArea.getUuid(), e); |
|
178 | 177 |
return namedArea.getTitleCache(); |
179 | 178 |
} |
180 | 179 |
} |
Also available in: Unified diff
Remove/Refactor System.out statements