Community
Participate
Working Groups
The setDefaultButton(Button) method from Decorations will throw an IllegalArgumentException when a disposed button is set, why doesn't CTabFolder's setTopRight(Control) method do the same? Display display = new Display(); Shell shell = new Shell(display, SWT.SHELL_TRIM); shell.setLayout(new FillLayout()); CTabFolder folder = new CTabFolder(shell, SWT.CLOSE); Composite c = new Composite(folder, SWT.NONE); c.dispose(); folder.setTopRight(c); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose();
Fixed > 20120618: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=f5471f1dce5662b63a70164ff03da95148af503a