gitlab #285
Change-Id: Idee2893d334ea093147678c0cb4579bf9aaadc2c
editor.setEditor(text, selectedItem, column);
}
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));
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);
throws DatabaseException {
graph.markUndoPoint();
ComponentTypeCommands.editType(graph, componentType, propertyInfo.resource, convertDefaultValue, newValue);
+ if (range != null) ComponentTypeCommands.setRange(graph, componentType, propertyInfo.resource, range);
- data.editType(table, editor, propertyInfo, selectedItem, column, true);
+ data.editType(table, editor, propertyInfo, selectedItem, column, selectedItem.getText(4), true);
- data.editType(table, editor, propertyInfo, selectedItem, column, false);
+ data.editType(table, editor, propertyInfo, selectedItem, column, null, false);