Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 467977 - [GTK3] Invalid focus in property views
Summary: [GTK3] Invalid focus in property views
Status: CLOSED DUPLICATE of bug 438505
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.5   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 04:51 EDT by Pierre-Charles David CLA
Modified: 2015-05-22 08:03 EDT (History)
1 user (show)

See Also:


Attachments
Invalid line focused in the properties view (97.38 KB, image/png)
2015-05-22 04:51 EDT, Pierre-Charles David CLA
no flags Details
Invalid keyboard focus on the properties view (206.54 KB, image/png)
2015-05-22 05:05 EDT, Pierre-Charles David CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Charles David CLA 2015-05-22 04:51:56 EDT
Created attachment 253662 [details]
Invalid line focused in the properties view

This seems specific to Linux and GTK3.

Steps to reproduce:
1. Launch a fresh Mars RC1 package (I tested using the "Java" package from https://hudson.eclipse.org/packaging/job/mars.epp-tycho-build/223/artifact/org.eclipse.epp.packages/archive/).
2. Create a plain project in the workspace, and a new Oomph "Setup Project Model" using a default template ("Simple Project" in my case).
3. Open the "Properties" view, and then select the top-level model element in the editor ("Cool Stuff"). The elements' properties show up (OK).
4. Click on the value of the first property, "Name" (with value "cool.stuff"). The corresponding line is correctly highlighted (OK), but the keyboard focus is on the property just below ("Label") => *KO*, see the attached screenshot.
5. Start typing a new value for the "Name" property you just selected: the value modified is the "Label" => *KO* (consistent with the focus problem from step 4).

This is on Ubuntu 15.04 (64 bits) with Java 1.8 and org.eclipse.swt.internal.gtk.version=3.14.12. A colleague has the same issue under Ubuntu 14.04 (64 bits).

Running the same scenario with SWT_GTK3=0 does not exhibit the problem (org.eclipse.swt.internal.gtk.version=2.24.27 in that cas).

I'm putting this in Platform, but I'm not entirely sure this is not actually related to EMF property views. We first saw it when testing Sirius (which is EMF based), and when trying to reproduce on a more plain Eclipse (the Java package), the only example of an editable property view I could think of was for Oomph, which is also EMF based. I'll try looking for a non-EMF editable property view.
Comment 1 Pierre-Charles David CLA 2015-05-22 05:04:54 EDT
Ignore my first screenshot, just switching to the screenshot tool removed the focus so the problem is not visible.

However I've been able to reproduce the problem in another context, which I believe does not involve EMF anywhere: instead of an Oomp model, create a Maven project, open the pom.xml and go to the last tab ("pom.xml") which shows the raw XML. When selecting the top-level <project/> element in this context, the properties view shows some editable properties. When you select the first ("xmlns"), the keyboard focus is se on the second ("xmlns:xsi").

I'll attach a new screenshot which this times correctly illustrates the issue in that example.
Comment 2 Pierre-Charles David CLA 2015-05-22 05:05:42 EDT
Created attachment 253664 [details]
Invalid keyboard focus on the properties view
Comment 3 Sravan Kumar Lakkimsetti CLA 2015-05-22 07:31:19 EDT
This looks like duplicate of Bug 438505. This screen shot looks exactly same https://bugs.eclipse.org/bugs/attachment.cgi?id=253464

this is fixed in RC2. Can you please test this with latest I-build?

*** This bug has been marked as a duplicate of bug 438505 ***
Comment 4 Pierre-Charles David CLA 2015-05-22 08:03:01 EDT
(In reply to Sravan Kumar Lakkimsetti from comment #3)
> This looks like duplicate of Bug 438505. This screen shot looks exactly same
> https://bugs.eclipse.org/bugs/attachment.cgi?id=253464
> 
> this is fixed in RC2. Can you please test this with latest I-build?

Confirmed fixed with I20150521-1715. Thanks!