fTable.addMouseMoveListener(new MouseMoveListener() { public void mouseMove(MouseEvent e) { TableItem tableItem= ((Table) e.getSource()).getItem(new Point(e.x, e.y)); if (fPressed & (null != tableItem)) { fTable.setSelection(new TableItem[] { tableItem }); activate(); }  if ((e.y + 1 > fTable.getBounds().height) & fPressed & (fTable.getSelectionIndex() != fTable.getItemCount() - 1)) { fTable.setTopIndex(fTable.getTopIndex() + 1); fTable.setSelection(fTable.getSelectionIndex() + 1); activate(); } if ((e.y - 1 < 0) & fPressed & (fTable.getTopIndex() != 0)) { fTable.setTopIndex(fTable.getTopIndex() - 1); fTable.setSelection(fTable.getSelectionIndex() - 1); activate(); } } });
	protected void addListeners() {		fTable.addSelectionListener(new SelectionListener() {			public void widgetSelected(SelectionEvent e) {				activate();			}			public void widgetDefaultSelected(SelectionEvent e) {				activate();			}		});				fTable.addDisposeListener(new DisposeListener() {			public void widgetDisposed(DisposeEvent e) {				disposeIcons();			}		});		fTable.addMouseListener(new MouseListener() {			public void mouseDoubleClick(MouseEvent e){				handleDoubleClick(e);			}			public void mouseDown(MouseEvent e) {				fPressed= true;				activate();			}			public void mouseUp(MouseEvent e) {				fPressed= false;				activate();			}		});				fTable.addMouseMoveListener(new MouseMoveListener() {			public void mouseMove(MouseEvent e) {				TableItem tableItem= ((Table) e.getSource()).getItem(new Point(e.x, e.y));				if (fPressed & (null != tableItem)) {					fTable.setSelection(new TableItem[] { tableItem });					activate();				}				// scrolling up and down				if ((e.y + 1 > fTable.getBounds().height)					& fPressed					& (fTable.getSelectionIndex() != fTable.getItemCount() - 1)) {					fTable.setTopIndex(fTable.getTopIndex() + 1);					fTable.setSelection(fTable.getSelectionIndex() + 1);					activate();				}				if ((e.y - 1 < 0) & fPressed & (fTable.getTopIndex() != 0)) {					fTable.setTopIndex(fTable.getTopIndex() - 1);					fTable.setSelection(fTable.getSelectionIndex() - 1);					activate();				}			}		});	}