Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 562872

Summary: TextCellEditor does not work on Linux if TreeViewer is initially empty
Product: [Eclipse Project] Platform Reporter: Phil Beauvoir <p.beauvoir>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: paul-eclipse
Version: 4.13   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Snippet to show the problem none

Description Phil Beauvoir CLA 2020-05-06 05:32:56 EDT
Version: 2019-09 (4.13)
Build id: I20190916-1045

Ubuntu 18.04 and 19.10 and Linux Mint 19.3

1. Create and display a TreeViewer with TextCellEditor support unpopulated with no tree nodes.
2. Populate the TreeViewer with a model by calling TreeViewer#setInput(model)
3. Attempt to edit a tree node by clicking on it. The TextCellEditor does not appear.

However:

1. Create and display a TreeViewer with TextCellEditor support pre-populated with tree nodes.
2. Attempt to edit a tree node by clicking on it. The TextCellEditor does appear
Comment 1 Phil Beauvoir CLA 2020-05-06 05:38:00 EDT
Created attachment 282722 [details]
Snippet to show the problem
Comment 2 Phil Beauvoir CLA 2020-05-06 05:38:44 EDT
Attached is a Snippet to reproduce this. Note this is a Linux only bug.

Run the snippet.

1. You will see two buttons and a space where there is an unpopulated Tree.
2. Press the first button. The tree is now populated.
3. Try to edit a tree node by clicking on it. The TextCellEditor does not appear.
4. Press the second button. A new tree is created, populated with a model and tree nodes.
5. You can now edit a tree node by clicking on it.
Comment 3 Paul Pazderski CLA 2020-05-06 08:58:16 EDT
You probably found bug 550606. Had you tried current Eclipse version 2020-03 (4.15)? (4.14 should be fixed as well)

*** This bug has been marked as a duplicate of bug 550606 ***
Comment 4 Phil Beauvoir CLA 2020-05-06 09:15:58 EDT
(In reply to Paul Pazderski from comment #3)
> You probably found bug 550606. Had you tried current Eclipse version 2020-03
> (4.15)? (4.14 should be fixed as well)
> 
> *** This bug has been marked as a duplicate of bug 550606 ***

Yes, thanks. I tried with 4.15 and it's working OK.

Sorry for the noise, I searched for it first before reporting but didn't find anything.