}
- Map<Integer, Boolean> restoreValuesForColumnWidth = restoreValuesForColumnWidth(titles, bounds);
- createInitalDistributionColumns(table, titles, bounds, restoreValuesForColumnWidth);
+ // Map<Integer, Boolean> restoreValuesForColumnWidth =
+ restoreValuesForColumnWidth(titles, bounds);
+ createInitalDistributionColumns(table, titles, bounds);
table.setSortDirection(SWT.DOWN);
table.setHeaderVisible(true);
table.setLinesVisible(true);
* @param restoreValuesForColumnWidth
*/
private void createInitalDistributionColumns(Table table,
- List<String> titles, List<Integer> bounds, Map<Integer, Boolean> restoreValuesForColumnWidth) {
+ List<String> titles, List<Integer> bounds) {
for (int columnIndex = 0; columnIndex < titles.size(); columnIndex++) {
TableViewerColumn column = new TableViewerColumn(viewer, SWT.NONE);
column.getColumn().setText(titles.get(columnIndex));
}
if ((columnIndex == 1 && !PreferencesUtil.isShowRankInChecklistEditor()) || columnIndex >= 2 ) {
//read PrefrenceStore to setWidth according to last saved state
- if(restoreValuesForColumnWidth.get(columnIndex)){
+// if(restoreValuesForColumnWidth.get(columnIndex)){
column.getColumn().setWidth(50);
- }else{
- column.getColumn().setWidth(0);
- }
+// }else{
+// column.getColumn().setWidth(0);
+// }
column.setEditingSupport(new DistributionEditingSupportE4(viewer, this, columnIndex));
}
* @param bounds
* @return Map<Integer, Boolean>
*/
- private Map<Integer, Boolean> restoreValuesForColumnWidth(List<String> titles,
+ private void restoreValuesForColumnWidth(List<String> titles,
List<Integer> bounds) {
- Map<Integer, Boolean> restoreColumnWidth = new HashMap<Integer, Boolean>();
+// Map<Integer, Boolean> restoreColumnWidth = new HashMap<Integer, Boolean>();
if (labelProvider.getNamedAreas(true) != null) {
int columnIndex;
if (PreferencesUtil.isShowRankInChecklistEditor()){
}
for (DefinedTermBase<DefinedTermBase> term : getLabelProvider().getNamedAreas(false)) {
if(term != null){
- restoreColumnWidth.put(columnIndex, PreferencesUtil.getPreferenceStore().getBoolean(term.getUuid().toString()));
+ // restoreColumnWidth.put(columnIndex, PreferencesUtil.getPreferenceStore().getBoolean(term.getUuid().toString()));
areaPosition.put(term.getUuid(), columnIndex);
if (PreferencesUtil.isShowIdInVocabularyInChecklistEditor()){
if (term.getIdInVocabulary() != null){
}
}
}
- return restoreColumnWidth;
+// return restoreColumnWidth;
}
/**