Project

General

Profile

« Previous | Next » 

Revision cb4029b0

Added by Patrick Plitzner over 7 years ago

ref #5458 Redesign navigation architecture

  • after login the user will be redirected directly to the table view and the settings dialog will be opened -made settings window implement ClickListener and ValueChangeListener
  • fixed possible NPEs due to redesign

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/util/DistributionEditorUtil.java
3 3
import java.util.Set;
4 4

  
5 5
import com.vaadin.server.VaadinSession;
6
import com.vaadin.ui.Notification;
7 6
import com.vaadin.ui.UI;
8 7

  
9 8
import eu.etaxonomy.cdm.model.common.TermVocabulary;
......
25 24
    public static final String SEPARATOR = ";;";
26 25

  
27 26
    public static void openDistributionView(TaxonNode taxonNode, TermVocabulary<NamedArea> term, Set<NamedArea> selectedAreas) {
28
		if(taxonNode==null){
29
			Notification.show("Please choose a classification and/or taxon", Notification.Type.HUMANIZED_MESSAGE);
30
			return;
31
		}
32
		if(term==null){
33
			Notification.show("Please choose a distribution area", Notification.Type.HUMANIZED_MESSAGE);
34
			return;
35
		}
36 27
	    VaadinSession.getCurrent().setAttribute(SATTR_TAXON_NODE_UUID, taxonNode.getUuid());
37 28
	    VaadinSession.getCurrent().setAttribute(SATTR_SELECTED_VOCABULARY_UUID, term.getUuid());
38 29
	    VaadinSession.getCurrent().setAttribute(SATTR_SELECTED_AREAS, selectedAreas);

Also available in: Unified diff