Bug 438505 - [GTK3] Problem with table/tree editing
Summary: [GTK3] Problem with table/tree editing
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux-GTK
: P1 critical (vote)
Target Milestone: 4.5 RC2   Edit
Assignee: Snjezana Peco CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 436324 458630 461041 467977 (view as bug list)
Depends on:
Blocks: 436324 441566 460581
  Show dependency tree
 
Reported: 2014-06-29 21:18 EDT by Snjezana Peco CLA
Modified: 2018-12-22 11:04 EST (History)
11 users (show)

See Also:
akurtakov: review+
arunkumar.thondapu: review+


Attachments
Screenshot of Trace Compass (27.22 KB, image/png)
2015-05-13 15:19 EDT, Marc-André Laperle CLA
no flags Details
Screenshot of Papyrus (25.25 KB, image/png)
2015-05-13 15:20 EDT, Marc-André Laperle CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Snjezana Peco CLA 2014-06-29 21:18:05 EDT
Test case: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet025TabEditing.java

The editing works correctly with GTK2.
GTK3 <= 3.8 - it works, but a context menu doesn't work. Right-click in an editing field, leave edit mode and actions (Cut, Copy, Paste ...) don't work.
GTK3 >= 3.10 - you can't enter editing mode.

See https://issues.jboss.org/browse/JBIDE-17075
Comment 1 Snjezana Peco CLA 2015-03-18 11:46:53 EDT
*** Bug 461041 has been marked as a duplicate of this bug. ***
Comment 2 Patrik Nandorf CLA 2015-03-19 03:39:37 EDT
If so, raise the importance to critical
Comment 3 Marc-André Laperle CLA 2015-05-01 18:27:23 EDT
*** Bug 458630 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Genie CLA 2015-05-11 11:48:53 EDT
New Gerrit change created: https://git.eclipse.org/r/47652
Comment 6 Snjezana Peco CLA 2015-05-11 12:14:25 EDT
*** Bug 436324 has been marked as a duplicate of this bug. ***
Comment 7 Snjezana Peco CLA 2015-05-11 12:15:29 EDT
*** Bug 460581 has been marked as a duplicate of this bug. ***
Comment 8 Alexander Kurtakov CLA 2015-05-12 07:34:35 EDT
Patch is good by me. Thanks for it Snjezana.
Comment 10 Alexander Kurtakov CLA 2015-05-12 13:00:08 EDT
Pushed to master.
Comment 11 Marc-André Laperle CLA 2015-05-13 15:19:44 EDT
Created attachment 253463 [details]
Screenshot of Trace Compass

This doesn't fully fix bug 436324 (Trace Compass) and bug 460581 (Papyrus). Now there seems to be a problem with the position of the selected item. In Trace Compass, if click on a row, it selects the one below. That wasn't the case before this fix. In Papyrus, it is similar except that some rows are editable, I have to select the row above to edit.
Comment 12 Marc-André Laperle CLA 2015-05-13 15:20:30 EDT
Created attachment 253464 [details]
Screenshot of Papyrus
Comment 13 Toni Siljamäki CLA 2015-05-13 17:21:10 EDT
Please REOPEN this bug then, until it is properly solved.
/Toni
Comment 14 Eclipse Genie CLA 2015-05-14 11:04:38 EDT
New Gerrit change created: https://git.eclipse.org/r/47920
Comment 15 Snjezana Peco CLA 2015-05-14 11:06:52 EDT
The patch https://git.eclipse.org/r/47920 fixes the issue in bug 460581 (Papyrus). 
I suppose it also fixes the issue in bug 436324.
Comment 16 Marc-André Laperle CLA 2015-05-15 14:21:55 EDT
(In reply to Snjezana Peco from comment #15)
> The patch https://git.eclipse.org/r/47920 fixes the issue in bug 460581
> (Papyrus). 
> I suppose it also fixes the issue in bug 436324.

I can confirm that it fixes the issue for Trace Compass (bug 436324) thank you!
Comment 17 Arun Thondapu CLA 2015-05-18 03:10:57 EDT
Alex, will you be reviewing the new patch from Snjezana?
RC2 needs two committer reviews, so I can also do a quick review.
Comment 18 Alexander Kurtakov CLA 2015-05-18 03:57:59 EDT
(In reply to Arun Thondapu from comment #17)
> Alex, will you be reviewing the new patch from Snjezana?
> RC2 needs two committer reviews, so I can also do a quick review.

On it now.
Comment 19 Alexander Kurtakov CLA 2015-05-18 04:42:58 EDT
Patch is good by me. Approved in gerrit but not pushed. My review+ from previous patch still applies. 
Arun, please do your review and push if fine.
Comment 20 Arun Thondapu CLA 2015-05-18 07:26:08 EDT
(In reply to Alexander Kurtakov from comment #19)
> Patch is good by me. Approved in gerrit but not pushed. My review+ from
> previous patch still applies. 
> Arun, please do your review and push if fine.

Looks good to me as well.

Did some testing on Ubuntu 14.04 (GTK 3.10.8) and the patch mostly works except for one scenario. Using test case from comment 0, the context menu actions via right mouse click still do not seem to work for me. Cut, copy, paste via keyboard shortcuts are working though.

Snjezana, is the context menu problem expected to be fixed with this patch?
Comment 21 Snjezana Peco CLA 2015-05-18 09:56:20 EDT
(In reply to Arun Thondapu from comment #20)
> 
> Snjezana, is the context menu problem expected to be fixed with this patch?

I haven't tested the context menu problem. I propose that we create a new bug related to it.
Comment 23 Arun Thondapu CLA 2015-05-18 10:40:22 EDT
(In reply to Snjezana Peco from comment #21)
> (In reply to Arun Thondapu from comment #20)
> > 
> > Snjezana, is the context menu problem expected to be fixed with this patch?
> 
> I haven't tested the context menu problem. I propose that we create a new
> bug related to it.

Sounds good, I've pushed the new patch, thanks Snjezana!
Comment 24 Snjezana Peco CLA 2015-05-18 11:10:30 EDT
*** Bug 461041 has been marked as a duplicate of this bug. ***
Comment 25 Sravan Kumar Lakkimsetti CLA 2015-05-22 07:31:19 EDT
*** Bug 467977 has been marked as a duplicate of this bug. ***
Comment 26 Patrick Tasse CLA 2015-10-02 10:57:50 EDT
*** Bug 436324 has been marked as a duplicate of this bug. ***
Comment 27 Marc-André Laperle CLA 2016-01-23 16:54:50 EST
This fixed the getBounds(int) method but not getBounds(), see bug 486302.
Comment 28 Viktoria Dlugopolskaya CLA 2018-05-15 07:03:46 EDT
Table/tree editing doesn't work properly on GTK 3.18.9 + SWT 3.107.0
Seems the changes in 511133 cause the issue again

The test case fails on GTK 3.18.9: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet025TabEditing.java
Comment 29 Ulyana Skorokhodova CLA 2018-05-15 07:05:50 EDT
Table/tree editing doesn't work properly on GTK 3.18.9 + SWT 3.107.0
See comment above.
Comment 30 Dani Megert CLA 2018-05-15 10:38:39 EDT
(In reply to Ulyana Skorokhodova from comment #29)
> Table/tree editing doesn't work properly on GTK 3.18.9 + SWT 3.107.0
> See comment above.

Please open a new bug report.
Comment 31 Oscar Asterkrans CLA 2018-12-21 15:25:31 EST
I saw the same issue in Eclipse 2018-12 with GTK3.18. Upgrading to GTK3.20.8 solved my problems.
Comment 32 Dani Megert CLA 2018-12-22 11:04:23 EST
(In reply to Oscar Asterkrans from comment #31)
> I saw the same issue in Eclipse 2018-12 with GTK3.18. Upgrading to GTK3.20.8
> solved my problems.

See comment 30.