Community
Participate
Working Groups
Neon.3 Release (4.6.3) running on Arch Linux with nonreparenting window manager (dwm) Double-clicking on the "expand" arrow next to a package or folder in the package explorer collapses the ENTIRE package tree. Is this a bug or a feature? This usually causes the most pain when I'm deep in the hierarchy and accidentally double click on a package. Expected behaviour: double clicking a package arrow expands and then collapses the specific package ONLY Observed behaviour: double clicking a package arrow collapses the entire package tree Additional note: running "wmname LG3D" sometimes fixes strange Java GUI issues when using dwm, but seems to have no effect on this issue.
I figured out that the entire tree is collapsed on double click when the root is selected (highlighted). So the problem seems to be that double clicking on a package arrow in the package explorer also clicks on the currently highlighted item. For example: double clicking on a package arrow while a text file is also highlighted somewhere in the tree will open the text file in the editor. This is certainly a bug.
Created attachment 268952 [details] Video showing issue
This also happens in Oxygen (4.7.1)
Can you provide detailed steps? I can't reproduce it from looking at the video.
Steps to reproduce: - Select something in the package tree (a text file for example) - Double click on ANY "expand" arrow in the package tree and the highlighted item will be opened. It's as if double clicking on the arrow also double clicks the highlighted item. I've observed this on clean installations of Eclipse 4.7.1a on Arch Linux and Ubuntu (Java8 and Java9).
(In reply to Tyler Cook from comment #5) > Steps to reproduce: > - Select something in the package tree (a text file for example) > - Double click on ANY "expand" arrow in the package tree and the highlighted > item will be opened. > > It's as if double clicking on the arrow also double clicks the highlighted > item. > > I've observed this on clean installations of Eclipse 4.7.1a on Arch Linux > and Ubuntu (Java8 and Java9). Might be an OS specific issue then. It works fine for me on Windows with 4.8 M3a: http://download.eclipse.org/eclipse/downloads/drops4/S-4.8M3a-201710300400/ Leo, can you check on Linux?
(In reply to Dani Megert from comment #6) > (In reply to Tyler Cook from comment #5) > > Steps to reproduce: > > - Select something in the package tree (a text file for example) > > - Double click on ANY "expand" arrow in the package tree and the highlighted > > item will be opened. > > > > It's as if double clicking on the arrow also double clicks the highlighted > > item. > > > > I've observed this on clean installations of Eclipse 4.7.1a on Arch Linux > > and Ubuntu (Java8 and Java9). > > Might be an OS specific issue then. It works fine for me on Windows with 4.8 > M3a: > http://download.eclipse.org/eclipse/downloads/drops4/S-4.8M3a-201710300400/ > > > Leo, can you check on Linux? Yea, this happens on Linux. I can reproduce this. Gtk3.22, I20170802-0800 -> Moving to swt. It's been bothering me for many months as well, but I never quite figured that double clicking opens the selected item and I didn't know it was Linux specific. I just thought that it's a strange glitch of sorts. This bug report clarifies the issue, thank you for submission. We should definetley fix this. It's very annoying. I wonder if my package explorer fix a few years ago got something to do with this bug: Bug 312568 – [GTK] Editor does not get focus after double click from Project/Package Explorer https://bugs.eclipse.org/bugs/show_bug.cgi?id=312568 Because the patch above changed how focus was assigned between package explorer and editor. It's possible that we need to implement some logic such that default selection is not triggered for the 'expand/collapse' triangle. I'd have to check if Gtk supports such behaviour, investigate how native gtk widgets behave with the expand/collapse triangle. It would be beneficial to bisect and see if SWT before my patch had a different behavior. I'm currently working on Webkit2 port, which should hopefully be complete this/next month. Hopefull I'll have time to investigate this after. (But anyone is welcome to investigate).
Feel free to vote for bugs that bother you. Bugs with lots of votes attract my attention more :-).
New Gerrit change created: https://git.eclipse.org/r/127803
Gerrit change https://git.eclipse.org/r/127803 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=570eea028ff9794f1df7de6a4445780010e8eaa8
New Gerrit change created: https://git.eclipse.org/r/127866
Gerrit change https://git.eclipse.org/r/127866 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=c6e37ef2ef76ca1acb81b99cc5b292749901055b
New Gerrit change created: https://git.eclipse.org/r/127867
Gerrit change https://git.eclipse.org/r/127867 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=d8772ff696a4bb41625e7b7e0282697146c213f8
(In reply to Eclipse Genie from comment #14) > Gerrit change https://git.eclipse.org/r/127867 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=d8772ff696a4bb41625e7b7e0282697146c213f8 In master now, thanks for the patch Xi.
Verified in I20180826-2000.