Project

General

Profile

« Previous | Next » 

Revision 9a34ef6a

Added by Katja Luther almost 3 years ago

ref #9680: add collector titleCache to result of collector search dialog

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/SelectionDialogFactory.java
55 55
import eu.etaxonomy.taxeditor.ui.section.group.MemberDetailElement;
56 56
import eu.etaxonomy.taxeditor.ui.section.group.MemberDetailSection;
57 57
import eu.etaxonomy.taxeditor.ui.section.name.AuthorshipDetailElement;
58
import eu.etaxonomy.taxeditor.ui.section.occurrence.FieldUnitFacadeGeneralDetailElement;
58 59
import eu.etaxonomy.taxeditor.ui.section.reference.NomenclaturalReferenceDetailElement;
59 60
import eu.etaxonomy.taxeditor.ui.section.reference.ReferenceDetailElement;
60 61
import eu.etaxonomy.taxeditor.ui.section.user.GroupsByUserDetailElement;
......
122 123
		if(clazz.equals(TeamOrPersonBase.class) && parentElement instanceof AuthorshipDetailElement){
123 124
            return (T) NomenclaturalAuthorSelectionDialog.select(shell, //conversation,
124 125
                    (TeamOrPersonBase) currentSelection, false);
125
        }else if(clazz.equals(TeamOrPersonBase.class)){
126
		    //TODO: add TeamOrPersonBaseSelectionDialog (see ticket #4545)
127
		    return (T) TeamOrPersonBaseSelectionDialog.select(shell, //conversation,
126
        }else if(clazz.equals(AgentBase.class) && parentElement instanceof FieldUnitFacadeGeneralDetailElement){
127
		    return (T) CollectorSelectionDialog.select(shell, //conversation,
128 128
		            (TeamOrPersonBase) currentSelection, false);
129
		}
129
		}else if(clazz.equals(TeamOrPersonBase.class)){
130
            //TODO: add TeamOrPersonBaseSelectionDialog (see ticket #4545)
131
            return (T) TeamOrPersonBaseSelectionDialog.select(shell, //conversation,
132
                    (TeamOrPersonBase) currentSelection, false);
133
        }
130 134
		if(clazz.equals(Person.class) && parentElement instanceof TeamMemberElement){
131 135
		    return (T) NomenclaturalPersonAuthorSelectionDialog.select(shell, //conversation,
132 136
		            (TeamOrPersonBase) currentSelection, true);

Also available in: Unified diff