Community
Participate
Working Groups
Build ID: 3.3M4 Steps To Reproduce: 1. Install clean 3.3M4 in Linux (In my case the distro was Kubuntu) 2. Go to Help / Preferences / Target Platform 3. When you select any of the already defined targets, the load target button is not enabled. More information: While reproducing the same steps on Windows the page works correctly. It seems the Combo ModifyEvents are handled differently in both versions. Adding a SelectionListener to the TargetPlatformPreferencesPage gets it to work in Linux too.
Created attachment 55960 [details] Patch for TargetPlatformPreferencesPage fixing the error
Grant, is this a bug in SWT? ie. a bug in the handling of ModifyEvent on Linux. or should we proceed with the patch that adds yet another listener on the combo box?
This is an swt bug, so I've logged bug 170215. However you may wish to apply the attached patch in the meantime, as I'm not sure when this bug will be addressed, and setting the enabled state on the Load Profile button twice should not be a problem.
I can take this bug. I looked into this quickly when it was first opened. I believe we can remove the selection listener completely if we use a modify listener. If so, I would rather have one listener instead of two.
brian, we already have a modify listener. the patch adds a selection listener.
ok, then reverse what I said :) I get confused first thing in the morning
Felix, thank you very much for the patch! I released a slightly modified version (removed the ModifyListener and extended SelectionAdapter instead of implementing ISelectionListener). Should be available in 3.3M5.