Project: SWT
Bug 121741 Disposing a StyledText disposes its menu?
Reported: 2005-12-21 11:11:18 | Status: resolved fixed

I pass the same menu into many StyledText controls to get a common context menu. When I dispose one of these, it disposes my menu. I could easily be confused, but it seems to me that this is contrary to the contract of dispose protocols. The StyledText didn't create it, why should it dispose it?

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