public void mouseDown(MouseEvent e) {
TableItem item = getTable().getItem(new Point(e.x, e.y));
if (item != null) {
Object obj = item.getData();
if (obj != null) {
NamespaceInfo info = (NamespaceInfo) obj;
TableColumn col = getTable().getColumn(0);
if (e.x < col.getWidth()) // if the point falls within
// the
// Select column then perform
// check/uncheck
{
String currentState = (String) info.getProperty("checked"); //$NON-NLS-1$
System.out.println("currentState" + currentState); //$NON-NLS-1$
if ((currentState == null) || currentState.equals("false")) //$NON-NLS-1$
{
info.setProperty("checked", "true"); //$NON-NLS-1$ //$NON-NLS-2$
}
else {
info.setProperty("checked", "false"); //$NON-NLS-1$ //$NON-NLS-2$
}
refresh();
}
}
}