TableColumn idColumn = new TableColumn(table, SWT.NONE);
TableColumn nameColumn = new TableColumn(table, SWT.NONE);
TableColumn markerColumn = new TableColumn(table, SWT.NONE);
for (String userId : getTaskAttribute().getValues()) {
User user = users.getById(RedmineUtil.parseIntegerId(userId));
if (user!=null) {
TableItem item = new TableItem(table, SWT.NONE);
item.setText(COLUMN_IDX_ID, userId);
item.setText(COLUMN_IDX_NAME, RedmineUtil.formatUserPresentation(user.getLogin(), user.getName()));
}
}
TaskAttribute addAttribute = getTaskAttribute().getAttribute(RedmineAttribute.WATCHERS_ADD.getTaskKey());
if (addAttribute!=null) {
for (String userId : addAttribute.getValues()) {
User user = users.getById(RedmineUtil.parseIntegerId(userId));
if (user!=null) {
TableItem item = new TableItem(table, SWT.NONE);
item.setText(COLUMN_IDX_ID, userId);
item.setText(COLUMN_IDX_NAME, RedmineUtil.formatUserPresentation(user.getLogin(), user.getName()));
}
}
}
nameColumn.pack();