Community
Participate
Working Groups
I have a project that uses SWT menus. Menus are working fine on Windows but when deployed on MAC, Selection Event is not getting fired. It is Eclipse Mars and JDK is from Sun. Version 1.8-0.4.5 and Mac is 10.9.5. In eclipse ini , we also have -XstartOnFirstThread. Pls find below the libraries included org.eclipse.osgi_3.10.100.v20250529-1857.jar org.eclipse.core.commands_3.7.0.v20150422-0725.jar org.eclipse.equinox.common_3.7.0.v20150402-1709.jar org.eclipse.equinox.registery_3.6.0.v20150318-1503.jar org.eclipse.core.runtime_3.11.0.v20150405-1723.jar org.eclipse.core.databinding_1.5.0.v20150422-0725.jar org.eclipse.core.databinding.property_1.4.200.v20140214-0004.jar org.eclipse.core.databinding.observable_1.4.1.v20140210-1835.jar org.eclipse.text_3.5.400.v20150505-1044.jar org.eclipse.jface_3.11.0.v20150602-1400.jar org.eclipse.jface.text_3.10.0.v20150603-1752.jar org.eclipse.jface.databinding_1.6.200.v20140528-1422.jar org.eclipse.ui.workbench_3.107.0.v20150510-1732.jar com.ibm.icu_54.1.1.v201501272100.jar org.eclipse.ui.forms_3.6.200.v20150506-2029.jar org.eclipse.swt_3.104.0.v20150528-0211.jar org.eclipse.swt.cocoa.macosx.x86_64_3.104.0.v20150528-0211.jar Pls help. -TIA
Can you provide an example snippet to reproduce the problem? For eg: I tried with Snippet133 [1] and Eclipse 4.5, Menu selection works fine. [1] - http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet133.java
I tested on Eclipse 4.5, OSX 10.9.5 and jdk1.8.0_45. Please try to provide a testcase to reproduce the problem
Created attachment 255451 [details] Snippet PFA the snippet
(In reply to Lakshmi Shanmugam from comment #2) > I tested on Eclipse 4.5, OSX 10.9.5 and jdk1.8.0_45. > Please try to provide a testcase to reproduce the problem Thanks for your response, Lakshmi. Mine is Eclipse Mars. I am attaching two files. MWTAPP.java & MonitorList.java. MWTAPP has a menu and on Select monitorlist should be opened. -thks for help
Can you pls update me on the progress? -thks
Need your help on urgent basis. My client is giving me hard time. Pls help.
(In reply to Ashish Sharma from comment #4) > (In reply to Lakshmi Shanmugam from comment #2) > > I tested on Eclipse 4.5, OSX 10.9.5 and jdk1.8.0_45. > > Please try to provide a testcase to reproduce the problem > > > Thanks for your response, Lakshmi. > > Mine is Eclipse Mars. > > I am attaching two files. MWTAPP.java & MonitorList.java. MWTAPP has a menu > and on Select monitorlist should be opened. > > -thks for help I tried the attached Snippet. The snippet creates a SWT.PUSH MenuItem on the Menubar and Selection event is not fired on the item. This seems like a bug as it works fine on Windows and it requires further investigation. Using a SWT.CASCADE MenuItem instead and creating a SWT.DROPDOWN Menu with the items should work fine.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Lakshmi, is this still an issue?
(In reply to Dani Megert from comment #9) > Lakshmi, is this still an issue? Yes Dani.
(In reply to Dani Megert from comment #9) > Lakshmi, is this still an issue? Hi, I have this issue, I create a new SWT Application, attach a MenuBar, run, and no Menu Bar appears. I did notice in the preview in design mode that the menu bar appears ABOVE the main shell. Versions are: macOS Catalina 10.15.2 Eclipse IDE for Java Developers Version: 2019-03 (4.11.0) Build id: 20190314-1200
I forgot to mention, I am using the Gerrit fix, because all of my preview was mirror-imaged otherwise.
(In reply to Dani Megert from comment #9) > Lakshmi, is this still an issue? Hi Dani, I don't know if you are working on this, but if you are, perchance, I have noticed one more thing. If I create a simple JFace app, with a MenuBar and one (File) option, when I run it, the File option actually gets added to the Main macOS Menu bar.
(In reply to Con Cunningham from comment #11) > (In reply to Dani Megert from comment #9) > > Lakshmi, is this still an issue? > > Hi, I have this issue, I create a new SWT Application, attach a MenuBar, > run, and no Menu Bar appears. I did notice in the preview in design mode > that the menu bar appears ABOVE the main shell. Versions are: > > Hi Dani, I don't know if you are working on this, but if you are, perchance, > I have noticed one more thing. If I create a simple JFace app, with a > MenuBar and one (File) option, when I run it, the File option actually gets > added to the Main macOS Menu bar. Hi, Looks like these are different issues from the original problem in the bug. I didn't understand the problems you are seeing. Can you please open a new bug and provide a snippet and screenshot showing the problem?