summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2008-06-13 19:36:53 +0000
committerGrant Gayed <ggayed>2008-06-13 19:36:53 +0000
commit0d62abd4579d53eb8b47edff64f8ddabb3535d64 (patch)
tree9f9d531ded0180ebebd38a454fcdf91af2a0fde0
parent0479445ea161c359597bce014f4edffc387571e2 (diff)
downloadeclipse.platform.swt-0d62abd4579d53eb8b47edff64f8ddabb3535d64.tar.gz
eclipse.platform.swt-0d62abd4579d53eb8b47edff64f8ddabb3535d64.tar.xz
eclipse.platform.swt-0d62abd4579d53eb8b47edff64f8ddabb3535d64.zip
225265 - Cannot invoke a contextual menu from a perspective button
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java
index bf69c81975..f9371c64d2 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java
@@ -485,6 +485,10 @@ public boolean isEnabled () {
return getEnabled () && parent.isEnabled ();
}
+int menuForEvent (int event) {
+ return parent.menuForEvent(event);
+}
+
void register () {
super.register ();
display.addWidget (view, this);