@Override public void mouseDown(MouseEvent e) { /* * If user clicked on the [+] or [-], do not activate * CellEditor. */ // XXX: This code should not be here. SWT should either have // support to see // if the user clicked on the [+]/[-] or manage the table editor // activation org.eclipse.swt.widgets.TableItem[] items = tableTree .getTable().getItems(); for (TableItem item : items) { Rectangle rect = item.getImageBounds(0); if (rect.contains(e.x, e.y)) { return; } } tableEditorImpl.handleMouseDown(e); } });