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
cachedElements = newCache;
			getTable().setItemCount(requiredCount);
		}
		/**
		 * The elements with the given indices need to be removed from the
		 * cache.
		 * 
		 * @param indices
		 */
		public void removeIndices(int[] indices) {
			if (indices.length == 1) {
				removeIndicesFromTo(indices[0], indices[0]);
			}
			int requiredCount = getTable().getItemCount() - indices.length;
			Arrays.sort(indices);
			Object[] newCache = new Object[requiredCount];
			int indexInNewCache = 0;
			int nextToSkip = 0;
			for (int i = 0; i < cachedElements.length; i++) {
				if (nextToSkip < indices.length && i == indices[nextToSkip]) {
					nextToSkip++;
				} else {
					newCache[indexInNewCache++] = cachedElements[i];
				}
			}
			cachedElements = newCache;
		}
		/**
		 * The elements between the given indices (inclusive) need to be removed
		 * from the cache.