Project: SWT
Bug 305335 taskitem doesnt work before shell.open()
Reported: 2010-03-10 10:30:58 | Status: resolved fixed

public static void main335(String[] args) { Display display = new Display(); Shell shell = new Shell(display); TaskItem item = display.getSystemTaskBar().getItem(shell); item.setOverlayText("hi"); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } expected: overlay text "hi" to show over the application icon result: "hi" is not shown note: it all works if shell.open() is called before item.setOverlayText("hi")

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskItem.java