Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363636 - Initial filter text is truncated in FilteredTree after workbench is started
Summary: Initial filter text is truncated in FilteredTree after workbench is started
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 23:37 EST by Shane Cartledge CLA
Modified: 2019-11-14 03:52 EST (History)
2 users (show)

See Also:


Attachments
Testcase (5.72 KB, application/zip)
2011-11-11 23:42 EST, Shane Cartledge CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shane Cartledge CLA 2011-11-11 23:37:39 EST
Build Identifier: 3.6.2

If a org.eclipse.ui.dialogs.FilteredTree instance is visible in a view when the workbench is started, the initial filter text in the filtered text is truncated at the left. For example, instead of "type filter text", the filter text reads "ype filter text".

The problem only appears to occur when the view's width is small.

The problem can be worked around by closing the view containing the filtered tree, or by selecting all the filter text from right to left.

Reproducible: Always

Steps to Reproduce:
1. Create an Eclipse view that displays a org.eclipse.ui.dialogs.FilteredTree. 

For example:

...
public void createPartControl(Composite parent)
{	
  fFilteredTree = new FilteredTree(parent, SWT.FLAT|SWT.MULTI|SWT.H_SCROLL| SWT.V_SCROLL|SWT.FULL_SELECTION|SWT.BORDER, new PatternFilter(), false);
}
...

2. Start Eclipse and open the view.

3. Re-size the view so that the view's width is as small as possible while still having the name of the view and the filter text visible.

4. Shutdown Eclipse.

5. Restart Eclipse - the filter text will be truncated on the left. For example, "ype filter text" instead of "type filter text".
Comment 1 Shane Cartledge CLA 2011-11-11 23:42:55 EST
Created attachment 206888 [details]
Testcase

Attached an Eclipse plugin named filteredtreetruncated in D363636.zip that can be used to recreate the problem.
Comment 2 Dani Megert CLA 2011-11-15 04:52:18 EST
I did not try your plug-in but tested with the 'Plug-in Registry' view on 3.6.2, 3.8 and 4.2 and it looks good there (Windows 7).
Comment 3 Lars Vogel CLA 2019-11-14 03:52:51 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.