editor.setEditor(text, selectedItem, column);
}
- public void editType(Table table, TableEditor editor, final ComponentTypeViewerPropertyInfo propertyInfo, TableItem selectedItem, int column, final boolean convertDefaultValue) {
+ public void editType(Table table, TableEditor editor, final ComponentTypeViewerPropertyInfo propertyInfo, TableItem selectedItem, int column, String range, final boolean convertDefaultValue) {
int extraStyle = propertyInfo.immutable ? SWT.READ_ONLY : 0;
final Combo combo = new Combo(table, SWT.NONE | extraStyle);
combo.setText(selectedItem.getText(column));
throws DatabaseException {
graph.markUndoPoint();
ComponentTypeCommands.editType(graph, componentType, propertyInfo.resource, convertDefaultValue, newValue);
+ if (range != null) ComponentTypeCommands.setRange(graph, componentType, propertyInfo.resource, range);
}
});
}
break;
case 1:
- data.editType(table, editor, propertyInfo, selectedItem, column, true);
+ data.editType(table, editor, propertyInfo, selectedItem, column, selectedItem.getText(4), true);
break;
case 2: {
break;
case 1:
- data.editType(table, editor, propertyInfo, selectedItem, column, false);
+ data.editType(table, editor, propertyInfo, selectedItem, column, null, false);
break;
case 2: