diff options
author | Grant Gayed <ggayed> | 2008-06-13 19:36:53 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2008-06-13 19:36:53 +0000 |
commit | 0d62abd4579d53eb8b47edff64f8ddabb3535d64 (patch) | |
tree | 9f9d531ded0180ebebd38a454fcdf91af2a0fde0 | |
parent | 0479445ea161c359597bce014f4edffc387571e2 (diff) | |
download | eclipse.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-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java | 4 |
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); |