Project: SWT
Bug 19630 Coolbar - odd dispose behavior
Reported: 2002-06-07 13:37:12 | Status: resolved fixed

Run the attached test case. Press the Remove button. The remove action will remove the first coolitem. First the coolitem's associated toolbar is disposed, then it executes setControl(null) for the coolitem, then it disposes the coolitem. Note that the setControl(null) method cause an SWTException, which is odd.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/emulated/tabfolder/org/eclipse/swt/widgets/TabItem.java bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/TabItem.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabItem.java