Project

General

Profile

« Previous | Next » 

Revision ec6c94b9

Added by Katja Luther about 5 years ago

ref #7854: fix problems in distribution editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionCellEditorDataConversionConfiguration.java
80 80
                DistributionEditorConfigLabelAccumulator.STATUS_EDITABLE
81 81
                );
82 82

  
83

  
84

  
83 85
        FilterRowTextCellEditor filterCellEditor = new FilterRowTextCellEditor();
84 86
        configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR,
85 87
                filterCellEditor,
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionColumnAccessor.java
99 99
     */
100 100
    @Override
101 101
    public String getColumnProperty(int columnIndex) {
102
        return editor.getPropertyToLabelMap().get(columnIndex);
102
        return (String) editor.getPropertyToLabelMap().get(columnIndex);
103 103
    }
104 104

  
105 105
    /**
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/StatusComboBoxDataProvider.java
36 36
    public StatusComboBoxDataProvider(DistributionEditor editor) {
37 37
        super();
38 38
        this.editor = editor;
39

  
39 40
    }
40 41

  
41 42
    @Override
......
46 47
    public static List<?> getValues(){
47 48
        List<DefinedTermBase> inputAll = new ArrayList<>();
48 49
        PresenceAbsenceTerm noneTerm = PresenceAbsenceTerm.NewInstance();
49
        noneTerm.setTitleCache(" ", true);
50
        noneTerm.addRepresentation(Representation.NewInstance("", "", "", CdmStore.getDefaultLanguage()));
50
        noneTerm.setTitleCache(" - ", true);
51
        noneTerm.addRepresentation(Representation.NewInstance(" - ", "", "", CdmStore.getDefaultLanguage()));
51 52
        inputAll.add(noneTerm);
52 53
        Collection<DefinedTermBase> input = CdmStore.getTermManager().getPreferredTerms(TermType.PresenceAbsenceTerm);
53 54
        List<DefinedTermBase> inputList = new ArrayList(input);
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/StatusDataCellEditor.java
41 41
    public StatusDataCellEditor(DistributionEditor editor, StatusComboBoxDataProvider statusComboBoxDataProvider) {
42 42
        super(statusComboBoxDataProvider, statusComboBoxDataProvider.getMaxVisibleItems());
43 43
        this.editor = editor;
44
        setUseCheckbox(true);
44
        setUseCheckbox(false);
45 45
        setMultiselect(false);
46 46

  
47 47
    }

Also available in: Unified diff