Revision e203f88d
Added by Patrick Plitzner over 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/presenter/dbstatus/DistributionSelectionPresenter.java | ||
---|---|---|
6 | 6 |
import java.util.List; |
7 | 7 |
|
8 | 8 |
import com.vaadin.server.VaadinSession; |
9 |
import com.vaadin.ui.Notification; |
|
9 | 10 |
import com.vaadin.ui.UI; |
10 | 11 |
|
11 | 12 |
import eu.etaxonomy.cdm.api.service.IClassificationService; |
... | ... | |
34 | 35 |
|
35 | 36 |
@Override |
36 | 37 |
public void buttonClick(TaxonNode taxonNode, TermVocabulary<DefinedTermBase> term) throws SQLException { |
38 |
if(taxonNode==null){ |
|
39 |
Notification.show("Please choose a classification and/or taxon", Notification.Type.HUMANIZED_MESSAGE); |
|
40 |
return; |
|
41 |
} |
|
42 |
if(term==null){ |
|
43 |
Notification.show("Please choose a distribution area", Notification.Type.HUMANIZED_MESSAGE); |
|
44 |
return; |
|
45 |
} |
|
37 | 46 |
VaadinSession.getCurrent().setAttribute("taxonNodeUUID", taxonNode.getUuid()); |
38 | 47 |
VaadinSession.getCurrent().setAttribute("selectedTerm", term.getUuid()); |
39 | 48 |
|
Also available in: Unified diff
ref #5458 Error handling