summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover <steve>2005-12-21 17:19:03 +0000
committerSteve Northover <steve>2005-12-21 17:19:03 +0000
commit71873338b82dfba9e79004bf4ca4bfdaaa8fba50 (patch)
tree8fc48b7cb6992f5105363a2cc971ccfc83479ae0
parenta5a8ba2c675a0d0e01f3ffec90984781fc3b8239 (diff)
downloadeclipse.platform.swt-71873338b82dfba9e79004bf4ca4bfdaaa8fba50.tar.gz
eclipse.platform.swt-71873338b82dfba9e79004bf4ca4bfdaaa8fba50.tar.xz
eclipse.platform.swt-71873338b82dfba9e79004bf4ca4bfdaaa8fba50.zip
121741 - Disposing a StyledText disposes its menu?
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java5
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java5
2 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
index d544f1402f..9c3dfe198d 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
@@ -2422,6 +2422,11 @@ public void setLocation (Point location) {
* the control. The sequence of key strokes, button presses
* and/or button releases that are used to request a pop up
* menu is platform specific.
+ * <p>
+ * Note: Disposing of a control that has a pop up menu will
+ * dispose of the menu. To avoid this behavior, set the
+ * menu to null before the control is disposed.
+ * </p>
*
* @param menu the new pop up menu
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java
index fd73491c69..6a25674ccd 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java
@@ -722,6 +722,11 @@ public void setImage (Image image) {
* pull down menu. The sequence of key strokes, button presses
* and/or button releases that are used to request a pull down
* menu is platform specific.
+ * <p>
+ * Note: Disposing of a menu item that has a pull down menu
+ * will dispose of the menu. To avoid this behavior, set the
+ * menu to null before the menu item is disposed.
+ * </p>
*
* @param menu the new pull down menu
*