else if (p.equals("W")) rightName = constants.write();
else if (p.equals("D")) rightName = constants.delete();
else if (p.equals("C")) rightName = constants.create();
else if (p.equals("G")) rightName = constants.grant();
String desc = translateDescription(role.getDescription());
TableItem item = new TableItem(new Object[] {
check, role.getName(), rightName,
desc });
item.setData(ROLE_DATA, role);
rolesTable.add(item);
}
}
});
}