Bug 169997 [CellEditors] TableViewer doesn't activate TextCellEditor consistently
A TextCellEditor is not activated consistently in a TableViewer if the cell clicked is not in the currently selected row. Running the sample application in a debugger, the bounds reported for the table item appears to be incorrect for the column when the row is not selected. This behaviour can be observed by setting a breakpoint at TableEditorImpl.java line 135 (the if statement doesn't return true unless the row is selected due to the bounds being incorrect): if (bounds.contains(event.x, event.y)) {
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ColumnViewer.java
* Contributors:
 *     IBM Corporation - initial API and implementation
 *     Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation; bug 153993
 *												   fix in bug 163317, 151295, 167323, 167858, 184346, 187826, 201905
 *******************************************************************************/
package org.eclipse.jface.viewers;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.internal.InternalPolicy;
import org.eclipse.jface.util.Policy;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.Widget;
/**
 * The ColumnViewer is the abstract superclass of viewers that have columns
 * (e.g., AbstractTreeViewer and AbstractTableViewer). Concrete subclasses of
 * {@link ColumnViewer} should implement a matching concrete subclass of
 * {@link ViewerColumn}.
 *
 * <strong> This class is not intended to be subclassed outside of the JFace
 * viewers framework.</strong>
 *
 * @since 3.3
 *
 */
public abstract class ColumnViewer extends StructuredViewer {