Project

General

Profile

« Previous | Next » 

Revision 4faee5bc

Added by Katja Luther over 2 years ago

ref #9894: add field primary collector and handle as described in ticket

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/SelectionDialogFactory.java
61 61
import eu.etaxonomy.taxeditor.ui.section.reference.ReferenceDetailElement;
62 62
import eu.etaxonomy.taxeditor.ui.section.user.GroupsByUserDetailElement;
63 63
import eu.etaxonomy.taxeditor.ui.section.user.GroupsByUserDetailSection;
64
import eu.etaxonomy.taxeditor.ui.selection.CollectorSelectionElement;
64 65

  
65 66
/**
66 67
 * @author n.hoffmann
......
122 123
        }else if(clazz.equals(AgentBase.class) && (parentElement instanceof FieldUnitFacadeGeneralDetailElement || parentElement instanceof DerivedUnitGeneralDetailElement)){
123 124
		    return (T) CollectorSelectionDialog.select(shell,
124 125
		            (TeamOrPersonBase) currentSelection, false);
126
		}else if (clazz.equals(AgentBase.class) && parentElement instanceof CollectorSelectionElement){
127
			return (T) CollectorSelectionDialog.select(shell,
128
		            (TeamOrPersonBase) ((CollectorSelectionElement)parentElement).getCollectorTeam(), true);
125 129
		}else if(clazz.equals(TeamOrPersonBase.class)){
126 130
            //TODO: add TeamOrPersonBaseSelectionDialog (see ticket #4545)
127 131
            return (T) TeamOrPersonBaseSelectionDialog.select(shell,

Also available in: Unified diff