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 228129
Collapse All | Expand All

(-)src/org/eclipse/ui/tests/navigator/extension/TestLabelProvider.java (-2 / +10 lines)
Lines 116-123 Link Here
116
	 * @see org.eclipse.jface.viewers.LabelProvider#dispose()
116
	 * @see org.eclipse.jface.viewers.LabelProvider#dispose()
117
	 */
117
	 */
118
	public void dispose() {
118
	public void dispose() {
119
		boldFont.dispose();
119
		final Font f = boldFont;
120
		backgroundColor.dispose();
120
		final Color c = backgroundColor;
121
		boldFont = null;
122
		backgroundColor = null;
123
		Display.getCurrent().timerExec(20, new Runnable(){
124
			public void run() {
125
				f.dispose();
126
				c.dispose();
127
			}
128
		});
121
	}
129
	}
122
130
123
}
131
}

Return to bug 228129