Bug 159597 [Viewers] getRowPart(Point) behaves differently on Table than on Tree
getRowPart(Point) is reacting different between on TableViewer and TreeViewer: TableViewer: ------------ protected Item getItem(int x, int y) { return table.getItem(new Point(x, y)); } TreeViewer: ----------- protected Item getItem(int x, int y) { return getTree().getItem(getTree().toControl(new Point(x, y))); }
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java
if (equals(children[i], item.getData())) {
				if (updateLabels) {
					updateItem(item, children[i]);
				} else {
					
					
					
					associate(children[i], item);
				}
			} else {
				
				
				
				
				
				
				item.setText(""); 
				item.setImage(new Image[Math.max(1, table.getColumnCount())]);
				
				
				disassociate(item);
			}
		}
		
		if (min < items.length) {
			for (int i = items.length; --i >= min;) {
				disassociate(items[i]);
			}
			if (virtualManager != null) {
				virtualManager.removeIndicesFromTo(min, items.length - 1);