return ReviewI18n.getString("ViewPreference.button.messageDialog.error");
}
}
};
List<ColumnData> columnDataList = this.reviewPhaseMap.get(this.reviewPhaseNameKey);
ColumnData columnData = (ColumnData) columnDataList.get(index);
String initialWidthValue = columnData.getColumnPixelData().width + "";
InputDialog dialog = new InputDialog(getShell(), ReviewI18n
.getString("ViewPreference.button.messageDialog.short"), ReviewI18n
.getString("ViewPreference.button.messageDialog.long"), initialWidthValue, validator); //$NON-NLS-1$ //$NON-NLS-2$
dialog.open();
if (dialog.getReturnCode() != InputDialog.OK) {
return;
}
String modifiedWidthValue = dialog.getValue();
int width = Integer.parseInt(modifiedWidthValue);
columnData.getColumnPixelData().width = width;
TableItem item = viewColumnTable.getItem(index);
item.setText(columnData.getColumnName() + " [" + width + "]");
}