Java editor view has no focus after double-clicking a java file

Bug #586910 reported by Oliver Klee
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Eclipse
Fix Released
High
eclipse (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: eclipse

Steps to reproduce:

1. in the Package explorer, double-click on a Java file
2. press CTRL + F to search for some string in the file

Expected results:
A Java editor view gets opened. The Java editor view gets the focus, and CTRL + F opens the find/replace dialog for that file.

Actual results:
A Java editor view gets opened. Focus however stays at the Package explorer view, and CTRL + F opens some search field for the Package explorer.

This worked fine with the Eclipse in Kubuntu 9.10.

In addition, Zend Studio for Eclipse also is affected. This worked fine in Zend Studios for Eclipse 7.12 on Kubuntu 9.10, and after re-installing Kubuntu 10.04 (and copying back my home directory which also includes Zend Studio), this was broken.

I've also filed this in the Eclipse bug tracker, but the Eclipse folk says that this probably is "buried lower": https://bugs.eclipse.org/bugs/show_bug.cgi?id=312568

Launchpad issue #237819 sounds a bit similar, but I'm not quite sure about this.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: eclipse 3.5.2-2ubuntu4.1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic-pae 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic-pae i686
Architecture: i386
Date: Fri May 28 19:14:42 2010
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: eclipse
workspace.metadata.log:

xulrunner-versions: /usr/lib/xulrunner-1.9.2.3

Revision history for this message
In , Remysuen (remysuen) wrote :

Does the problem persist on Eclipse 3.6M7?
http://download.eclipse.org/eclipse/downloads/

How did you download and install Eclipse? What distribution are you on? What versions of GTK+ do you have installed?

Revision history for this message
In , Pwebster-ca (pwebster-ca) wrote :

BuildId: M20100211-1343

Do you have any errors in your error log? <workspace>/.metadata/.log

I tried this on the same build on linux. Double-click on a java file from the Package Explorer and once it is opened, hit CTRL+F. I'm now searching in the editor.

PW

Revision history for this message
In , Eclipse-01 (eclipse-01) wrote :

(In reply to comment #2)
> Do you have any errors in your error log? <workspace>/.metadata/.log

No.

Revision history for this message
In , Eclipse-01 (eclipse-01) wrote :

(In reply to comment #1)
> How did you download and install Eclipse? What distribution are you on? What
> versions of GTK+ do you have installed?

This is Eclipse 3.5.2 that comes with Ubuntu 10.04 (Lucid Lynx).

I'm using libgtk 2.20.0.

Revision history for this message
In , Eclipse-01 (eclipse-01) wrote :

I've just tested with a virgin workspace with a new project: The problem still occurs there as well.

I'll test with Eclipse 3.6m7 now.

Revision history for this message
In , Eclipse-01 (eclipse-01) wrote :

The problem persists with Eclipse 3.6M7.

By the way, this is on KDE 4.4.2. I haven't tested this on Gnome yet.

Revision history for this message
In , Francis Upton (francisu) wrote :

Are you sure this is Package Explorer and not Project Explorer?

Revision history for this message
In , Eclipse-01 (eclipse-01) wrote :

Yes, this occurs in the Package Explorer, but I can also reproduce the problem in the Project Explorer.

Revision history for this message
In , Susan-franklin (susan-franklin) wrote :

not sure where to send this, I'll assign to CommonNavigator but chances are that this is something buried lower since it seems to be a platform difference.

Revision history for this message
In , Eclipse-01 (eclipse-01) wrote :

By the way, I've only seen this after the upgrade from Kubuntu 9.10 to Kubuntu 10.04 (which updated the OS and Eclipse). However, Zend Studio for Eclipse (a separate application) was also affected (and Zend Studio for Eclipse was the same version as before the upgrade).

In case this might be relevant, this is how I start Eclipse and Zend Studio:

/usr/bin/eclipse
env GDK_NATIVE_WINDOWS=1 /home/klee/Zend/ZendStudio-7.1.1/ZendStudio

Is there anything else which I'd need to check?

Revision history for this message
Oliver Klee (launchpad-oliverklee) wrote :

Binary package hint: eclipse

Steps to reproduce:

1. in the Package explorer, double-click on a Java file
2. press CTRL + F to search for some string in the file

Expected results:
A Java editor view gets opened. The Java editor view gets the focus, and CTRL + F opens the find/replace dialog for that file.

Actual results:
A Java editor view gets opened. Focus however stays at the Package explorer view, and CTRL + F opens some search field for the Package explorer.

This worked fine with the Eclipse in Kubuntu 9.10.

In addition, Zend Studio for Eclipse also is affected. This worked fine in Zend Studios for Eclipse 7.12 on Kubuntu 9.10, and after re-installing Kubuntu 10.04 (and copying back my home directory which also includes Zend Studio), this was broken.

I've also filed this in the Eclipse bug tracker, but the Eclipse folk says that this probably is "buried lower": https://bugs.eclipse.org/bugs/show_bug.cgi?id=312568

Launchpad issue #237819 sounds a bit similar, but I'm not quite sure about this.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: eclipse 3.5.2-2ubuntu4.1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic-pae 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic-pae i686
Architecture: i386
Date: Fri May 28 19:14:42 2010
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: eclipse
workspace.metadata.log:

xulrunner-versions: /usr/lib/xulrunner-1.9.2.3

Revision history for this message
Oliver Klee (launchpad-oliverklee) wrote :
Revision history for this message
Gabe Gorelick (gabegorelick) wrote :

I can confirm this on Ubuntu 9.10. I can also confirm this bug when running /usr/lib/eclipse/eclipse directly without the /usr/bin/eclipse wrapper script that sets GDK_NATIVE_WINDOWS=true, among other things.

It looks like what is going on here is that when you open a java file, the editor is not stealing focus from the package explorer, so it is not surprising that CTRL-F searches in the package explorer instead. If you start typing, you get the search box in the package explorer as well.

Changed in eclipse (Ubuntu):
status: New → Confirmed
Revision history for this message
Gabe Gorelick (gabegorelick) wrote :

Oops, I meant Ubuntu 10.04, not 9.10.

Revision history for this message
In , Eclipse-01 (eclipse-01) wrote :

By the way, this problem does _not_ occur on the OS X version of Eclipse.

Revision history for this message
In , Sanjar Akhmedov (sanjar) wrote :

The problem persists in Eclipse 3.6.

Details: Standard Eclipse Helios distro downloaded from eclipse.org; Ubuntu 10.04 64bit; Gtk+ 2.20.1-0ubuntu2.

Revision history for this message
In , Filipe Sousa (filipe-ipb) wrote :

I have the same problem.
The only way to get editor focus is with the Project Explorer View detached

Eclipse Java EE IDE for Web Developers.
Version: Helios Release
Build id: 20100617-1415

Fedora 13 x86_64

$ java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)

Revision history for this message
In , Setatum (setatum) wrote :

I also have this issue. It's really annoying! :)

uname info: Linux statum-laptop 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:12:52 UTC 2010 i686 GNU/Linux

Eclipse 3.5.2 Build id: 20100218-1602

Sun JDK 1.6.20 (32-bit)

My command line:
eclipse -vm /usr/lib/jvm/java-6-sun/bin/java -Xmx1024m -XX:MaxPermSize=256m

Other folks have been reporting GTK version.. here is my dpkg output:
ii libgtk2.0-0 2.20.1-0ubuntu2

Let me know if you need any info or want me to try something.

Revision history for this message
In , Francis Upton (francisu) wrote :

(In reply to comment #12)
> The problem persists in Eclipse 3.6.
>
> Details: Standard Eclipse Helios distro downloaded from eclipse.org; Ubuntu
> 10.04 64bit; Gtk+ 2.20.1-0ubuntu2.
I am running the same Eclipse version OS and don't see the problem. I'm running Gnome, are you using KDE or Gnome?

Revision history for this message
In , Francis Upton (francisu) wrote :

(In reply to comment #14)

> Other folks have been reporting GTK version.. here is my dpkg output:
> ii libgtk2.0-0 2.20.1-0ubuntu2

This works fine on Ubuntu Jaunty (10.04) with:

ii libgtk2.0-0 2.16.1-0ubuntu2

Revision history for this message
In , Francis Upton (francisu) wrote :

Everyone, please run this command to report the version of GTK you are using:

dpkg -l | grep libgtk2.0-0

Revision history for this message
In , Manaster (manaster) wrote :

ii libgtk2.0-0 2.20.0-0ubuntu4

and it's still not working for me.

Revision history for this message
In , Eclipse-01 (eclipse-01) wrote :

ii libgtk2.0-0 2.20.1-0ubuntu2

... on Kubuntu 10.04, and not working

Revision history for this message
In , Filipe Sousa (filipe-ipb) wrote :

Installed Packages
Name : gtk2
Arch : x86_64
Version : 2.20.1
Release : 1.fc13

Revision history for this message
In , Francis Upton (francisu) wrote :

Ok, seems like this is a GTK issue with GTK 2.20.

Off to SWT.

Revision history for this message
In , Sanjar Akhmedov (sanjar) wrote :

(In reply to comment #15)
> (In reply to comment #12)
> > The problem persists in Eclipse 3.6.
> >
> > Details: Standard Eclipse Helios distro downloaded from eclipse.org; Ubuntu
> > 10.04 64bit; Gtk+ 2.20.1-0ubuntu2.
> I am running the same Eclipse version OS and don't see the problem. I'm running
> Gnome, are you using KDE or Gnome?

I am using Gnome. Here is the output you requested:

[~]% dpkg -l | grep libgtk2.0-0
ii libgtk2.0-0 2.20.1-0ubuntu2

Revision history for this message
In , Mseneta (mseneta) wrote :

I'm experiencing the same issue.

Revision history for this message
In , Kenjmorgan (kenjmorgan) wrote :

Additional info: this problem does not occur when opening a file with the "Enter" key. It only seems to occur when double-clicking. Also, this problem is not limited to the opening of Java files. It seems to occur for any file type that opens an editor when double-clicked. Problem happens for me using build id M20100909-0800 on Ubuntu 10.10.

Changed in eclipse-eclipsers:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Pinnamur (pinnamur) wrote :

*** Bug 331081 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ivo-maixner (ivo-maixner) wrote :

Same problem.
OpenSUSE 11.4, 64-bit.
libgtk-2_0.0, v. 2.22.1-13.15.1.
Eclipse Java EE IDE for Web Developers, Version: Indigo Release, Build id: 20110615-0604.

NOTE: double-click works correctly (transfers focus to Editor window) for .xsd files(!).

For all other files I have tried (.java, .xml, .xsl, pom.xml, etc.), double-click keeps focus in Package explorer, while Enter transfers focus to Editor window.

Revision history for this message
In , skriv (ed-zwart) wrote :

I can confirm bug for double click (unless view is detached). Enter works whether detached or not.

ii libgtk2.0-0 2.20.1-0ubuntu2.1
Ubuntu 10.04
Eclipse 3.7.1 Build id: M20110909-1335

Revision history for this message
Nguyen Anh Minh (minhna) wrote :

I use Aptana Studio 3.0 in XUbuntu and I got this problem too.

After I used the Find and Replace function, the key board is not working anymore. I have this problem with Zend Studio 5.5.1 too.

Aptana Studio 3, build: 3.0.8.201201201658

$ dpkg -l | grep libgtk2.0-0
ii libgtk2.0-0 2.24.6-0ubuntu5 The GTK+ graphical user interface library
ii libgtk2.0-0:i386 2.24.6-0ubuntu5 The GTK+ graphical user interface library

$ uname -a
Linux minh-desktop 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 17:23:00 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
In , P-bodnar (p-bodnar) wrote :

Created attachment 221871
AutoFocusOpenedEditorPlugin.jar

This "feature" was really driving me nuts, so I have written this simple plug-in which gives the stolen focus back to the opened / activated editor. Not the "real" solution, I guess, but at least it is working for me... :) The "autofocusopenededitorplugin/internal/conf.properties" file inside the jar gives the basic idea about the solution.

I hope you can find it useful until this issue / root of the issue gets really fixed...

Revision history for this message
In , Markus-keller (markus-keller) wrote :

*** Bug 394462 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Markus-keller (markus-keller) wrote :

From bug 394462 comment 1:

=> Analysis of the events:

When I double-click a file in the Package Explorer, then Tree.gtk_row_activated(int, int, int) line: 2008 posts a DefaultSelection event.

This is handled by org.eclipse.jface.util.OpenStrategy, which opens the editor and sets focus to the StyledText.

But in the end, Control.gtk_button_press_event(int, int, boolean) line 2936 activates the Tree widget again:

 if (!shell.isDisposed ()) shell.setActiveControl (this);

This line is wrong. If the control really needs to be activated again on double-click, then this needs to happen before any listeners are notified.

Changed in eclipse-eclipsers:
importance: Medium → High
Revision history for this message
In , Markus-keller (markus-keller) wrote :

Here's a standalone snippet. If you double-click the tree item on Windows, the focus ends up in the Text as expected. On GTK, focus goes back to the Tree.

(In reply to comment #30)
The execution sequence in Control.gtk_button_press_event(int, int, boolean) is a bit convoluted:
- First, the "sendMouseEvent (..., false, ...)" call *posts* a mouse down event, which is enqueued.
- Then, the "shell.setActiveControl (...)" call *sends* an activate event, which is processed immediately.
- Later, the enqueued mouse down is processed

=> The final order of the Activate, MouseDown, and DefaultSelection events is correct.

The real problem is somewhere deeper in the SWT/GTK interaction. I first thought it's just the "OS.gtk_widget_grab_focus (handle);" at the end of Tree.gtk_button_press_event(int, int) on line 1891, but when I remove that and run the snippet, I still get some callbacks via windowProc that remove the focus from the Text again.

Revision history for this message
In , Markus-keller (markus-keller) wrote :

Created attachment 230644
Snippet312568.java

Revision history for this message
In , Pdecat+eclipse (pdecat+eclipse) wrote :

The same issue still occurs on Ubuntu 13.04 using Default, Classic and GTK themes with eclipse kepler.

Tested builds:
* 4.3RC2a (Build id: I20130526-2000)
* 4.3RC3 (Build id: I20130530-1430)

Does not happen on Windows XP SP3.

Revision history for this message
In , Pdecat+eclipse (pdecat+eclipse) wrote :

Same issue with eclipse 4.3RC4 (Build id: I20130605-2000).

Revision history for this message
In , Bertrand Croq (bcroq) wrote :

Same issue here.

Archlinux using KDE 4.11.00 but not using archlinux's Eclipse.
gtk2: 2.24.20-1

eclipse.buildId=4.3.0.I20130605-2000
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.7.0_25-b15

Revision history for this message
In , Pwebster-ca (pwebster-ca) wrote :

Problem still in Luna RC1.

PW

Revision history for this message
In , Jw2online (jw2online) wrote :

Kubuntu 14.04.
Eclipse 4.4.0.

So very disruptive to a workflow to open a file from the package explore and then try to find something in the file. It may not seem like much but when ctrl+f keeps searching the package explorer instead of the file, it is really, _really_ annoying.

This is prompting me to try other IDEs because this is disruptive enough. I know that this used to work. It's unfortunate that it has become a persistent bug.

Revision history for this message
In , P-bodnar (p-bodnar) wrote :

(In reply to JW from comment #37)

I can only confirm, bugs like these don't make a good name to Eclipse. Have you tried the attached plugin as a workaround for this problem? (see comment #28)

Revision history for this message
In , Daniel-megert (daniel-megert) wrote :

Arun, can you please have this investigated? Thanks.

Revision history for this message
In , Lufimtse (lufimtse) wrote :

Working on this.

Revision history for this message
In , Lufimtse (lufimtse) wrote :

I have a ~Work-in-progress~ patch here:
(NOT FULLY READY YET):
https://git.eclipse.org/r/#/c/49702

There are 2 issues:

1) 11 year workaround that steals focus that is no longer relevant. (Removed it).
see:
git show 300ace8e3eaec6136b4861feec65efae8fe149fc

2) MouseDoubleClick event comes after DefaultSelection. Platform UI (quite logically) expects DefaultSelection to come after MouseDoubleClick.
If I manually delay this event by 50ms then all works well.

Now I'm looking for a better way to solve it than a 50ms delay.
What I have in mind at the moment is :
 a. Not listen to ROW_ACTIVATION at all. Instead manually trigger defaultSelection after DoubleClick event occurred and get selection manually.

 b. Write some thread-wait mechanism that slows down DefaultSelection till after Double-click event went through.

I'm researching which of those works best.

Any thoughts/tips/advise is welcomed.

Revision history for this message
In , Lufimtse (lufimtse) wrote :

This also occurs on Gtk3 btw.

Revision history for this message
In , Lufimtse (lufimtse) wrote :

*** Bug 465984 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Akurtakov (akurtakov) wrote :

(In reply to Leo Ufimtsev from comment #41)
> I have a ~Work-in-progress~ patch here:
> (NOT FULLY READY YET):
> https://git.eclipse.org/r/#/c/49702
>
> There are 2 issues:
>
> 1) 11 year workaround that steals focus that is no longer relevant. (Removed
> it).
> see:
> git show 300ace8e3eaec6136b4861feec65efae8fe149fc

Having this removed in separate commit is good idea as this is a must do stuff while the rest is not yet decided and we can push it as soon as devel opens.

>
> 2) MouseDoubleClick event comes after DefaultSelection. Platform UI (quite
> logically) expects DefaultSelection to come after MouseDoubleClick.
> If I manually delay this event by 50ms then all works well.
>
> Now I'm looking for a better way to solve it than a 50ms delay.
> What I have in mind at the moment is :
> a. Not listen to ROW_ACTIVATION at all. Instead manually trigger
> defaultSelection after DoubleClick event occurred and get selection manually.
>
> b. Write some thread-wait mechanism that slows down DefaultSelection till
> after Double-click event went through.
>
> I'm researching which of those works best.

a) sounds better option to me

>
> Any thoughts/tips/advise is welcomed.

Revision history for this message
In , Genie (genie) wrote :

New Gerrit change created: https://git.eclipse.org/r/50031

Revision history for this message
In , Lufimtse (lufimtse) wrote :

(In reply to Alexander Kurtakov from comment #44)
> (In reply to Leo Ufimtsev from comment #41)
> > I have a ~Work-in-progress~ patch here:
> > (NOT FULLY READY YET):
> > https://git.eclipse.org/r/#/c/49702
> >
> > There are 2 issues:
> >
> > 1) 11 year workaround that steals focus that is no longer relevant. (Removed
> > it).
> > see:
> > git show 300ace8e3eaec6136b4861feec65efae8fe149fc
>
> Having this removed in separate commit is good idea as this is a must do
> stuff while the rest is not yet decided and we can push it as soon as devel
> opens.

Submitted patch part 1: (removal of old workaround)
https://git.eclipse.org/r/#/c/50031

Will work on part 2 now.

Revision history for this message
In , Genie (genie) wrote :

New Gerrit change created: https://git.eclipse.org/r/50125

Revision history for this message
In , Lufimtse (lufimtse) wrote :

Part 2 is finished:
https://git.eclipse.org/r/#/c/50125/

Tree/Table/List now manually send the DefaultSelection after the double click event.

I also added code so that it would send it
 - After a MouseDoubleClick event
 - Space (no modifiers)
 - Shift+space (and no other modifiers)
 - Return (no modifiers
This is to preserve functionality of row-activation as per GtkDocu:
https://developer.gnome.org/gtk3/stable/GtkTreeView.html#GtkTreeView-row-activated

With these two patches double-clicking in package explorer now passes focus correctly to the editor. It also impacts all other tree-double click widgets, e.g double-clicking no a breakpoint now shifts focus to the code-line that the break-point is on. Etc..

Patches are ready for review.

Revision history for this message
In , Qudus (qudus) wrote :

Bug still exists on Mars.

Revision history for this message
In , Lufimtse (lufimtse) wrote :

(In reply to Marvin Fröhlich from comment #49)
> Bug still exists on Mars.

~Patch not yet merged into master due to code freeze. Should make it into master in a week or two.

Revision history for this message
In , Sxenos (sxenos) wrote :

With patch 2 (the one that changes event order), can someone confirm that the event order is identical between Windows and GTK?

It's probably best to keep the order consistent across platforms if possible, and probably best not to change the order if it's already consistent. I suspect the patch is probably good (and I've confirmed that the combination of both patches fixes the problem reported here) but I'd suggest we determine the event order across platforms before changing it on GTK.

Revision history for this message
In , Genie (genie) wrote :
Revision history for this message
In , Genie (genie) wrote :
Revision history for this message
In , Akurtakov (akurtakov) wrote :

Both patches pushed to master. It's really good to see 5 years old bug finally going out.
I don't have access to Windows box to test but this is really big usability issue so having it fixed sooner is more important in my eyes. If there is such an issue let's deal with it in separate bug.

Revision history for this message
In , Akurtakov (akurtakov) wrote :

Arun, what do you think about backporting the patches to Mars?

Revision history for this message
In , Lufimtse (lufimtse) wrote :

Created attachment 255028
LTEST_312568_TreeDoubleClick.java

Snippet to test patch and print order of events.

- Order of events before patch ::
  mouse down
  mouse down
  Tree default selection. 319987237
  Mouse double

- Order of events after patch ::
  mouse down
  mouse down
  Mouse double
  Tree default selection. 320178740

  Before patch:
   - Double clicking on Tree/Table/List had no impact on focus
  After patch :
   - Upon double clicking Tree/Table/List, focus shifts to text box.

Revision history for this message
In , Scela-x (scela-x) wrote :

(In reply to Leo Ufimtsev from comment #56)

> - Order of events after patch ::
> mouse down
> mouse down
> Mouse double
> Tree default selection. 320178740

I can confirm that it is the same in Windows.

Revision history for this message
In , Markus-keller (markus-keller) wrote :

(In reply to Eclipse Genie from comment #53)
> Gerrit change https://git.eclipse.org/r/50125 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=3db87a8763e3fd3f931295da165ddee8363a7b16
>

The Widget#valueContainsFlag(..) doesn't meet SWT's coding style and quality standards:

- The standard idiom in SWT is this:

 if ((keymask & (OS.GDK_MOD1_MASK | OS.GDK_SHIFT_MASK
   | OS.GDK_CONTROL_MASK | OS.GDK_SUPER_MASK
   | OS.GDK_META_MASK | OS.GDK_HYPER_MASK)) != 0) {
  sendTreeDefaultSelection();
 }

Also note the position of the '{'.

The valueContainsFlag method should be removed again. If it would have been kept, the following would have had to be fixed:

- Why is the type of 'value' long and not int?
- Missing @return description.
- Typo: Convienience (please check why you didn't see an error underline from the spell checker)

Revision history for this message
In , Genie (genie) wrote :

New Gerrit change created: https://git.eclipse.org/r/51524

Revision history for this message
In , Lufimtse (lufimtse) wrote :

(In reply to Markus Keller from comment #58)
> (In reply to Eclipse Genie from comment #53)
> > Gerrit change https://git.eclipse.org/r/50125 was merged to [master].
> > Commit:
> > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=3db87a8763e3fd3f931295da165ddee8363a7b16
> >
>
> The Widget#valueContainsFlag(..) doesn't meet SWT's coding style and quality
> standards:
>
> - The standard idiom in SWT is this:
>
> if ((keymask & (OS.GDK_MOD1_MASK | OS.GDK_SHIFT_MASK
> | OS.GDK_CONTROL_MASK | OS.GDK_SUPER_MASK
> | OS.GDK_META_MASK | OS.GDK_HYPER_MASK)) != 0) {
> sendTreeDefaultSelection();
> }
>
> Also note the position of the '{'.

Thank you for feedback. I've made the relevant refactoring and tested for functionality. (removed valueContainsFlag() method).
I added you as reviewer:
https://git.eclipse.org/r/#/c/51524/
Please let me know if there's anything else.

> The valueContainsFlag method should be removed again. If it would have been
> kept, the following would have had to be fixed:
>
> - Why is the type of 'value' long and not int?
> - Missing @return description.
> - Typo: Convienience (please check why you didn't see an error underline
> from the spell checker)
To this I shall link to this tweet:
https://twitter.com/iamdevloper/status/614509767747178499

(On the side: I did have spell check turned on, but it seems by default Eclipse only picks up the first 100 spell check errors. The function being at the bottom of a 2000+ widget, Eclipse didn't get to the typo. I set my preferences to 9999 instead now)

Revision history for this message
In , Genie (genie) wrote :
Revision history for this message
In , Akurtakov (akurtakov) wrote :

As I missed the issues in my review - I have reviewed and pushed it, all is good now.

Revision history for this message
In , Qudus (qudus) wrote :

(In reply to Alexander Kurtakov from comment #55)
> Arun, what do you think about backporting the patches to Mars?

Yes, please. This bug existed for a long time now. Would be a shame, if it was delayed till the next release.

Revision history for this message
In , Markus-keller (markus-keller) wrote :

Thanks for the cleanups and for not releasing my wrong proposal with "!= 0".

I agree this should be backported, but only after a few weeks of testing in the 4.6 stream. Reopening for 4.5.1.

Revision history for this message
In , AlexHofbauer (alex-derhofbauer) wrote :

I don't know whether this is related, but on Gnome 3.16 with Mars there's a strange issue with list views: A click doesn't seem to reach the item, i.e. set focus on it. It only selects that view.

This results in having to first focus the view and then click on an entry to get it selected. It also makes opening entries in the Navigator impossible via double click.

Double-clicking on an Navigator item while having focus on an editor window opens the currently selected entry, no matter what item was actually double-clicked.

Right clicks are also affected, e.g. showing properties for the currently selected file, not the one right clicked to get its menu.

This confuses me a lot.

Double-clicks on folders in the Navigator are not affected, single clicks (r and l) are. Folding / expanding arrows work as well.

Revision history for this message
In , Lufimtse (lufimtse) wrote :

(In reply to Alexander Hofbauer from comment #65)
> I don't know whether this is related, but on Gnome 3.16 with Mars there's a
> strange issue with list views: A click doesn't seem to reach the item, i.e.
> set focus on it. It only selects that view.

Hello,

I tested latest Eclipse Mars with Gtk 3.16.5 (As well as with Gtk 2.24) with the double click patch. Works well for me, the issue described does not appear on my Fedora 22 system.

(I'll attach video in a bit). May I suggest to submit a separate bug-report and post more details (e.g your OS, theme, perhaps a screen recording with gtk-recordMyDesktop to illustrate the issue?) and perhaps link to this bug as related.
If you have the means, you could try to revert the SWT patch and see if the issue occurs for you without the patch; although this may require you to rebuild the SWT bindings.

Revision history for this message
In , Lufimtse (lufimtse) wrote :

Created attachment 255301
Double click seems to work for me on Mars.

Revision history for this message
In , AlexHofbauer (alex-derhofbauer) wrote :

N

Revision history for this message
In , AlexHofbauer (alex-derhofbauer) wrote :

Oh, apparently a browser hiccup or something alike caused my comment to be truncated. Sorry for the noise.

Thank you for your input. I added bug 473093, trying to describe my problem further.

Revision history for this message
In , Lufimtse (lufimtse) wrote :

As discussed in the other bug, bug 473093 is not related to this bug.

As things stand, awating further feedback, otherwise we can probably backport it some time next week.

Revision history for this message
In , Lufimtse (lufimtse) wrote :

If there are no observed issues, we should consider backporting now to resolve this bug.

Revision history for this message
In , Akurtakov (akurtakov) wrote :

(In reply to Leo Ufimtsev from comment #71)
> If there are no observed issues, we should consider backporting now to
> resolve this bug.

Arun, here is my +1 for backporting it.

Revision history for this message
In , Arunkumar-thondapu-i (arunkumar-thondapu-i) wrote :

(In reply to Alexander Kurtakov from comment #72)
> (In reply to Leo Ufimtsev from comment #71)
> > If there are no observed issues, we should consider backporting now to
> > resolve this bug.
>
> Arun, here is my +1 for backporting it.

+1 from me as well, Leo, please go ahead and release the patch to R4_5_maintenance. Thanks!

Revision history for this message
In , Lufimtse (lufimtse) wrote :

(In reply to comment #73)
> (In reply to Alexander Kurtakov from comment #72)
> > (In reply to Leo Ufimtsev from comment #71)
> > > If there are no observed issues, we should consider backporting now to
> > > resolve this bug.
> >
> > Arun, here is my +1 for backporting it.
>
> +1 from me as well, Leo, please go ahead and release the patch to
> R4_5_maintenance. Thanks!

Ok, I pushed it into R4_5_maintenance. Closing for now.

Changed in eclipse-eclipsers:
status: Confirmed → Fix Released
Revision history for this message
In , Sravan Kumar Lakkimsetti (sravankumarl) wrote :

Verified on M20150826-1000 Linux x86 32bit

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.