Bug 519439 - editor doesn't get focus after double click from package explorer
Summary: editor doesn't get focus after double click from package explorer
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2017-07-10 04:14 EDT by miro CLA
Modified: 2019-01-25 14:54 EST (History)
5 users (show)

See Also:


Attachments
Configuration (150.51 KB, text/plain)
2017-07-24 01:37 EDT, miro CLA
no flags Details
zipped eclipse project (393 bytes, application/octet-stream)
2017-07-24 01:42 EDT, miro CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description miro CLA 2017-07-10 04:14:24 EDT
The Bug 312568 reappeared again in eclipse 4.8
Comment 1 miro CLA 2017-07-10 05:35:41 EDT
When I switched the IDE Appearance Theme to Classic and Color and Font theme to Classic Theme, the problem is not here anymore. 

The original theme was set to Light. 

Using LXDE window manager on recent debian system.
Comment 2 miro CLA 2017-07-10 08:27:52 EDT
I change my previous comment. 

Focus is correctly set for *.java, *.properties, *.js, *.txt files. 
Doesn't work for *.xml files.

Same behavior when opening files from Package explorer or via Open Resources dialog.
Comment 3 Leo Ufimtsev CLA 2017-07-10 16:58:12 EDT
~Investigating...
Comment 4 Leo Ufimtsev CLA 2017-07-10 18:13:20 EDT
Does not reproduce for me.

Fedora 25

Eclipse SDK
Version: Photon (4.8)
Build id: I20170709-2000
gtk 3.22.15

Tried: 
- Download eclipse from nightly update site
- Open xml files
- Open .java files
- Classic theme (with restart)
- light theme (with restart)

Might be some glitch in one of your plugins?

1) Can you try a blank Eclipse?

To download recent nightly/integration builds, please go here:
http://download.eclipse.org/eclipse/downloads/
- Scroll down to "4.x Integration Builds". 
- Click on the most recent stable build like "I201XXXXX...", 
- Find your platform in the "Eclipse SDK". Download the archive, extract it and run the 'eclipse' binary.

2) Can you try Gnome IDE, to see if it's related to your desktop manager?

3) Failing that:
- Please post detailed info on:
- IDE version
- OS version
- Gtk version (copy Build info in help -> about)
- Detailed steps to reproduce
Comment 5 Leo Ufimtsev CLA 2017-07-18 14:15:56 EDT
ping.
Comment 6 miro CLA 2017-07-24 01:37:53 EDT
Created attachment 269500 [details]
Configuration

Eclipse Configuration
Comment 7 miro CLA 2017-07-24 01:42:14 EDT
Hi, 

I have tried with clean Eclipse Platform together with Eclipse XML Editors and Tools (configuration attached). 

Create general project and create a xml file (attached).

When I double click on the xml file in Package Explorer, the file is opened, but the focus is not there.


My linux platform: Debian LXDE (stable, up to date).
Linux msimko 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux
Comment 8 miro CLA 2017-07-24 01:42:58 EDT
Created attachment 269501 [details]
zipped eclipse project
Comment 9 miro CLA 2017-07-24 01:44:24 EDT
My build info:

Eclipse Platform

Version: Oxygen (4.7)
Build id: I20170612-0950



I will try on GNOME and send results late.
Comment 10 miro CLA 2017-07-27 04:52:27 EDT
I have tested with GNOME, same results and no focus for XML files.

I have noticed, that right after opening the XML file, blinking cursor is shown inside the editor, but the focus is not there and there is no response on keyboard input. After a while the cursor stops blinking - sometime disappearing, sometimes staying shown but no blinking. The focus is still not there and no response on keyboard input.

Linux msimko 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux

Package: gnome-core                      
Version: 1:3.22+3
Comment 11 miro CLA 2017-07-30 05:15:32 EDT
Hi again, 

I have downloaded eclipse-platform-I20170728-2000-linux-gtk-x86_64.tar.gz

Unfortunately, I am not able to install any plugins using Install New Software. The two update sites are not working for Eclipse Photon.
Comment 12 Xi Yan CLA 2018-08-24 14:46:47 EDT
I cannot reproduce the issue. 

Eclipse SDK
Version: 2018-09 (4.9)
Build id: I20180823-0450
OS: Linux, v.4.17.12-200.fc28.x86_64, x86_64 / gtk 3.22.30, WebKit 2.20.4
Java version: 1.8.0_181

Can you still reproduce it with a 4.9 build?
Comment 13 Dani Megert CLA 2018-08-25 04:40:35 EDT
(In reply to Xi Yan from comment #12)
> I cannot reproduce the issue. 

Looking at comment 2 I assume he has installed some XML editor which maybe doesn't (correctly) implement #setFocus.

Miro, which XML editor do you use? If you are not sure, you can manually set the focus in the XML editor and then press Alt+Shift+F1. This will tell you which editor is used.
Comment 14 miro CLA 2018-08-26 02:57:43 EDT
Dani, I'm not able to open Alt-Shift+F1 (this opens Start menu in my LXDE).

However, I'm sure I use the editor from plugin "Eclipse XML Editors and Tools" currently in version 3.10.0.v201804210200
The problem is still there.
Comment 15 Dani Megert CLA 2018-08-26 04:05:10 EDT
(In reply to Miro Simko from comment #14)
> Dani, I'm not able to open Alt-Shift+F1 (this opens Start menu in my LXDE).

Tip: You could reassign another key binding to 'Plug-in Selection Spy'.
Comment 16 miro CLA 2018-08-30 10:26:51 EDT
(In reply to Dani Megert from comment #15)
> (In reply to Miro Simko from comment #14)
> > Dani, I'm not able to open Alt-Shift+F1 (this opens Start menu in my LXDE).
> 
> Tip: You could reassign another key binding to 'Plug-in Selection Spy'.

Tried to do that but unsuccessfully. 

I have set another key binding (tried several combinations), but no Spy window opened after hitting the key binding.
Comment 17 Dani Megert CLA 2018-08-30 10:31:56 EDT
(In reply to Miro Simko from comment #16)
> (In reply to Dani Megert from comment #15)
> > (In reply to Miro Simko from comment #14)
> > > Dani, I'm not able to open Alt-Shift+F1 (this opens Start menu in my LXDE).
> > 
> > Tip: You could reassign another key binding to 'Plug-in Selection Spy'.
> 
> Tried to do that but unsuccessfully. 
> 
> I have set another key binding (tried several combinations), but no Spy
> window opened after hitting the key binding.

Maybe you messed up with the context (When). We're not aware of any problems in that area.
Comment 18 miro CLA 2018-08-30 10:37:01 EDT
(In reply to Dani Megert from comment #17)
> 
> Maybe you messed up with the context (When). We're not aware of any problems
> in that area.

Seems I have the similar problem as described in a bug #536064. However for me the workaround with CAPSLOCK doesn't work.
Comment 19 Xi Yan CLA 2018-12-07 11:19:32 EST
Is this still reproducible?
Comment 20 Xi Yan CLA 2019-01-11 12:03:29 EST
No response for a while, closing. Please reopen this ticket if the issue reoccurs.
Comment 21 miro CLA 2019-01-24 16:12:47 EST
still not fixed, currently running 4.8
Comment 22 miro CLA 2019-01-25 05:45:43 EST
I've tried with 2018-12 clean installation for Java Developers (using installer app).

With clean installation and no additional plugins installed, the bug is gone!

I try to install some other plugins that I use and give one more feedback.
Comment 23 Dani Megert CLA 2019-01-25 09:59:17 EST
(In reply to Miro Simko from comment #22)
> I've tried with 2018-12 clean installation for Java Developers (using
> installer app).
> 
> With clean installation and no additional plugins installed, the bug is gone!

Great!
Comment 24 miro CLA 2019-01-25 14:54:22 EST
I've installed all plugins that I use in my Photon installation excluding UML Designer (which is not available for 201812).

The problem with XML editor focus seems to be solved. 

Thanks.