Project

General

Profile

« Previous | Next » 

Revision 942a8769

Added by Katja Luther almost 5 years ago

ref #8047: show symbol and label in drop down of distribution editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/StatusComboBoxDataProvider.java
69 69

  
70 70

  
71 71
    public static List<?> getValues(CdmPreference pref){
72
        List<DefinedTermBase> inputAll = new ArrayList<>();
72
        List<StatusHelper> inputAll = new ArrayList<>();
73 73
        PresenceAbsenceTerm noneTerm = PresenceAbsenceTerm.NewInstance();
74 74
        noneTerm.setTitleCache(" - ", true);
75 75
        noneTerm.addRepresentation(Representation.NewInstance(" - ", " ", " ", CdmStore.getDefaultLanguage()));
76
        inputAll.add(noneTerm);
76
        inputAll.add(new StatusHelper(noneTerm));
77 77
        String statusString = pref.getValue();
78 78

  
79 79
        List<PresenceAbsenceTerm> inputList;
......
93 93
        Comparator<DefinedTermBase> comp = new OrderedTermComparator<>();
94 94
        Collections.sort(inputList, comp);
95 95
        Collections.sort(inputList, Collections.reverseOrder());
96

  
97
        inputAll.addAll(1, inputList);
96
        int index = 1;
97
        for (PresenceAbsenceTerm term: inputList){
98
            inputAll.add(index, new StatusHelper(term));
99
        }
100
       // inputAll.addAll(1, inputList);
98 101
        return inputAll;
99 102
    }
100 103

  

Also available in: Unified diff