Revision 1cc08dc4
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CellEditorDataConversionConfiguration.java | ||
---|---|---|
78 | 78 |
EditConfigAttributes.CELL_EDITABLE_RULE, |
79 | 79 |
IEditableRule.ALWAYS_EDITABLE, |
80 | 80 |
DisplayMode.EDIT, |
81 |
CharacterMatrixConfigLabelAccumulator.CATEGORICAL |
|
81 |
CharacterMatrixConfigLabelAccumulator.CATEGORICAL_EDITABLE
|
|
82 | 82 |
); |
83 | 83 |
//add display converter for string representation |
84 | 84 |
configRegistry.registerConfigAttribute( |
... | ... | |
91 | 91 |
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, |
92 | 92 |
new CategoricalDataCellEditor(matrix, new CategoricalComboBoxDataProvider(matrix)), |
93 | 93 |
DisplayMode.EDIT, |
94 |
CharacterMatrixConfigLabelAccumulator.CATEGORICAL |
|
94 |
CharacterMatrixConfigLabelAccumulator.CATEGORICAL_EDITABLE
|
|
95 | 95 |
); |
96 | 96 |
|
97 | 97 |
|
... | ... | |
103 | 103 |
EditConfigAttributes.CELL_EDITABLE_RULE, |
104 | 104 |
IEditableRule.ALWAYS_EDITABLE, |
105 | 105 |
DisplayMode.EDIT, |
106 |
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE |
|
106 |
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE_EDITABLE
|
|
107 | 107 |
); |
108 | 108 |
//add display converter for string representation |
109 | 109 |
configRegistry.registerConfigAttribute( |
110 | 110 |
CellConfigAttributes.DISPLAY_CONVERTER, |
111 | 111 |
new QuantitativeDataEditModeDisplayConverter(), |
112 | 112 |
DisplayMode.EDIT, |
113 |
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE); |
|
113 |
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE_EDITABLE);
|
|
114 | 114 |
configRegistry.registerConfigAttribute( |
115 | 115 |
CellConfigAttributes.DISPLAY_CONVERTER, |
116 | 116 |
new QuantitativeDataNormalModeDisplayConverter(), |
... | ... | |
122 | 122 |
EditConfigAttributes.OPEN_IN_DIALOG, |
123 | 123 |
Boolean.TRUE, |
124 | 124 |
DisplayMode.EDIT, |
125 |
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE); |
|
125 |
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE_EDITABLE);
|
|
126 | 126 |
//register quantitative editor |
127 | 127 |
configRegistry.registerConfigAttribute( |
128 | 128 |
EditConfigAttributes.CELL_EDITOR, |
129 | 129 |
new QuantitativeDataDialogEditor(matrix), |
130 | 130 |
DisplayMode.EDIT, |
131 |
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE); |
|
131 |
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE_EDITABLE);
|
|
132 | 132 |
// configure custom dialog settings |
133 | 133 |
Map<String, Object> editDialogSettings = new HashMap<>(); |
134 | 134 |
editDialogSettings.put(ICellEditDialog.DIALOG_SHELL_TITLE, "Quantitative Data"); |
... | ... | |
146 | 146 |
EditConfigAttributes.EDIT_DIALOG_SETTINGS, |
147 | 147 |
editDialogSettings, |
148 | 148 |
DisplayMode.EDIT, |
149 |
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE); |
|
149 |
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE_EDITABLE);
|
|
150 | 150 |
} |
151 | 151 |
|
152 | 152 |
} |
Also available in: Unified diff
ref #7674 Disable cell editor for aggregated taxon descriptions