Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 562872 - TextCellEditor does not work on Linux if TreeViewer is initially empty
Summary: TextCellEditor does not work on Linux if TreeViewer is initially empty
Status: RESOLVED DUPLICATE of bug 550606
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.13   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-06 05:32 EDT by Phil Beauvoir CLA
Modified: 2020-05-06 09:15 EDT (History)
1 user (show)

See Also:


Attachments
Snippet to show the problem (4.59 KB, text/plain)
2020-05-06 05:38 EDT, Phil Beauvoir CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.