Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 149193 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jface/viewers/TableViewer.java (-3 / +3 lines)
Lines 7-13 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Tom Schindl <tom.schindl@bestsolution.at> (bug 83200)
10
 *     Tom Schindl <tom.schindl@bestsolution.at> - concept of RowPart
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.jface.viewers;
13
package org.eclipse.jface.viewers;
Lines 1247-1255 Link Here
1247
		TableItem item;
1247
		TableItem item;
1248
		
1248
		
1249
		if( rowIndex >= 0 ) {
1249
		if( rowIndex >= 0 ) {
1250
			item = new TableItem(table,SWT.NONE,rowIndex);
1250
			item = new TableItem(table,style,rowIndex);
1251
		} else {
1251
		} else {
1252
			item = new TableItem(table,SWT.NONE);
1252
			item = new TableItem(table,style);
1253
		}
1253
		}
1254
		
1254
		
1255
		return getRowPartFromItem(item);
1255
		return getRowPartFromItem(item);
(-)src/org/eclipse/jface/viewers/TreeViewer.java (-2 / +3 lines)
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Tom Schindl <tom.schindl@bestsolution.at> - concept of RowPart
10
 *******************************************************************************/
11
 *******************************************************************************/
11
12
12
package org.eclipse.jface.viewers;
13
package org.eclipse.jface.viewers;
Lines 924-933 Link Here
924
		}
925
		}
925
		
926
		
926
		if( rowIndex >= 0 ) {
927
		if( rowIndex >= 0 ) {
927
			return getRowPartFromItem(new TreeItem((TreeItem)parent.getItem(),SWT.NONE,rowIndex));
928
			return getRowPartFromItem(new TreeItem((TreeItem)parent.getItem(),style,rowIndex));
928
		}
929
		}
929
		
930
		
930
		return getRowPartFromItem(new TreeItem((TreeItem)parent.getItem(),SWT.NONE));
931
		return getRowPartFromItem(new TreeItem((TreeItem)parent.getItem(),style));
931
	}
932
	}
932
	
933
	
933
	protected ColumnViewerPart createColumnViewer(Widget columnOwner, ViewerLabelProvider labelProvider) {
934
	protected ColumnViewerPart createColumnViewer(Widget columnOwner, ViewerLabelProvider labelProvider) {
(-)src/org/eclipse/jface/viewers/ViewerLabelProvider.java (-54 / +1 lines)
Lines 294-313 Link Here
294
	}
294
	}
295
295
296
	/**
296
	/**
297
	 * This is the amount the used to control how much the tooltip is shifted
298
	 * from the current mouse position
299
	 * 
300
	 * @param object
301
	 *            the element for which the tooltip is shown
302
	 * @param columnIndex
303
	 *            the column-index
304
	 * @return shift of the tooltip
305
	 */
306
	public Point getTooltipShift(Object object, int columnIndex) {
307
		return null;
308
	}
309
310
	/**
311
	 * If you want your tooltip to be using the native Tooltip you can force
297
	 * If you want your tooltip to be using the native Tooltip you can force
312
	 * this by returning true from this method. If native tooltips are used only
298
	 * this by returning true from this method. If native tooltips are used only
313
	 * the text-value is used all other feature are of custom tooltips are not
299
	 * the text-value is used all other feature are of custom tooltips are not
Lines 324-368 Link Here
324
	}
310
	}
325
311
326
	/**
312
	/**
327
	 * The time in milliseconds after the tooltip is hidden
328
	 * 
329
	 * @param object
330
	 *            the element for which the tooltip is shown
331
	 * @param columnIndex
332
	 *            the column-index
333
	 * @return milliseconds
334
	 */
335
	public int getTooltipTimeDisplayed(Object object, int columnIndex) {
336
		return 0;
337
	}
338
339
	/**
340
	 * The time in milliseconds until the tooltip pops up
341
	 * 
342
	 * @param object
343
	 *            the element for which the tooltip is shown
344
	 * @param columnIndex
345
	 *            the column-index
346
	 * @return milliseconds
347
	 */
348
	public int getTooltipDisplayDelayTime(Object object, int columnIndex) {
349
		return 0;
350
	}
351
352
	/**
353
	 * The style used to create the label
354
	 * 
355
	 * @param object
356
	 *            the element for which the tooltip is shown
357
	 * @param columnIndex
358
	 *            the column-index
359
	 * @return style mask
360
	 */
361
	public int getTooltipImageStyle(Object object, int columnIndex) {
362
		return SWT.SHADOW_NONE;
363
	}
364
365
	/**
366
	 * This is the amount the used to control how much the tooltip is shifted
313
	 * This is the amount the used to control how much the tooltip is shifted
367
	 * from the current mouse position
314
	 * from the current mouse position
368
	 * 
315
	 * 
Lines 417-423 Link Here
417
	 *            the element for which the tooltip is shown
364
	 *            the element for which the tooltip is shown
418
	 * @return style mask
365
	 * @return style mask
419
	 */
366
	 */
420
	public int getTooltipImageStyle(Object object) {
367
	public int getTooltipStyle(Object object) {
421
		return SWT.SHADOW_NONE;
368
		return SWT.SHADOW_NONE;
422
	}
369
	}
423
370
(-)src/org/eclipse/jface/viewers/TreeColumnViewerPart.java (+1 lines)
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Tom Shindl <tom.schindl@bestsolution.at> - initial API and implementation
10
 ******************************************************************************/
11
 ******************************************************************************/
11
12
12
package org.eclipse.jface.viewers;
13
package org.eclipse.jface.viewers;
(-)src/org/eclipse/jface/viewers/TreeEditorImpl.java (+1 lines)
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Tom Shindl <tom.schindl@bestsolution.at> - Refactored to use ColumnViewerPart
10
 *******************************************************************************/
11
 *******************************************************************************/
11
12
12
package org.eclipse.jface.viewers;
13
package org.eclipse.jface.viewers;
(-)src/org/eclipse/jface/viewers/TooltipSupport.java (-1 / +1 lines)
Lines 127-133 Link Here
127
				
127
				
128
				tip = new Shell(viewer.getControl().getShell(), SWT.ON_TOP | SWT.TOOL);
128
				tip = new Shell(viewer.getControl().getShell(), SWT.ON_TOP | SWT.TOOL);
129
				tip.setLayout(new FillLayout());
129
				tip.setLayout(new FillLayout());
130
				CLabel label = new CLabel(tip, labelProvider.getTooltipImageStyle(element));
130
				CLabel label = new CLabel(tip, labelProvider.getTooltipStyle(element));
131
				label.setText(text);
131
				label.setText(text);
132
				label.addListener(SWT.MouseExit, hideListener);
132
				label.addListener(SWT.MouseExit, hideListener);
133
				label.addListener(SWT.MouseDown, hideListener);
133
				label.addListener(SWT.MouseDown, hideListener);
(-)src/org/eclipse/jface/viewers/TableColumnViewerLabelProvider.java (-3 / +1 lines)
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Tom Shindl <tom.schindl@bestsolution.at> - initial API and implementation
10
 ******************************************************************************/
11
 ******************************************************************************/
11
12
12
package org.eclipse.jface.viewers;
13
package org.eclipse.jface.viewers;
Lines 23-31 Link Here
23
 * part of a work in progress. This API may change at any given time. Please 
24
 * part of a work in progress. This API may change at any given time. Please 
24
 * do not use this API without consulting with the Platform/UI team.
25
 * do not use this API without consulting with the Platform/UI team.
25
 * @since 3.3
26
 * @since 3.3
26
 * Contributors:
27
 *     IBM Corporation - initial API and implementation
28
 *     Tom Shindl <tom.schindl@bestsolution.at> - initial API and implementation
29
 * @see ITableLabelProvider
27
 * @see ITableLabelProvider
30
 * @see ITableColorProvider
28
 * @see ITableColorProvider
31
 * @see ITableFontProvider
29
 * @see ITableFontProvider
(-)src/org/eclipse/jface/viewers/TableEditorImpl.java (+1 lines)
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Tom Shindl <tom.schindl@bestsolution.at> - Refactored to use ColumnViewerPart
10
 *******************************************************************************/
11
 *******************************************************************************/
11
12
12
package org.eclipse.jface.viewers;
13
package org.eclipse.jface.viewers;

Return to bug 149193