Bug 299528 - [Dialogs] [FilteredTree] first expansion of node is cancelled when it activates scrolling and "type filter text" is hover
Summary: [Dialogs] [FilteredTree] first expansion of node is cancelled when it activat...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-13 12:50 EST by Mickael Istria CLA
Modified: 2019-09-06 15:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2010-01-13 12:50:25 EST
I have a wizard.
On the first page of this wizard, I have a FilteredTree which is filled up with categories. By default, the focus is on the filter textbox, and the "type filter text" is hover.
When clicking on the arrow on the left of a node to expand it, I can see that the node is exapanded, a verstical scrollbar is added, and then the node is unexpectedly re-collapsed... After that, everything is working fine.

I noticed that once I put focus on anything else than the default filter text ("type filter text"), everything is working normally.

My guess is that the focus lost event of the filter area is handled after the expand node command. The sequence of steps in SWT seems to be:
* Click on arrow of category
* give focus to tree
* handle expansion of node
* remove focus from filter textbox
* Consider this as a modification event or something like that, so that the treeViewer applies filter ""
* The tree is then collapsed.

These are only suggestions, I did not dive into the event dispatching to confirm it.
Comment 1 Oleg Besedin CLA 2010-01-21 12:00:41 EST
I can't duplicate this on WinXP or Mac/Coca. (I don't have Linux machine so can't try it there.) The dialog is used in, say Window -> Show View -> Other; expanding "General" category typically will add a scroll bar.

Mickael, could you try the "Show View" dialog?
Comment 2 Mickael Istria CLA 2010-01-21 12:35:40 EST
Oleg,

The "Show view" dialog has always been working well on my machine (Ubuntu 9.04). No problem with auto-collapsing or things like that.

My guess about event order seems to be wrong... Maybe this is specific to a wizard?

I'll try to reduce and simplify as much as possible the use-case and I'll attach it there as soon as I get more time.
In the meantime, you can find the use-case here, if you are interested:
* http://www.bonitasoft.org/websvn/listing.php?repname=Bonita+Open+Solution&path=%2Fbonita-studio%2Ftrunk%2Fplugins%2Forg.bonitasoft.studio.properties%2Fsrc%2Forg%2Fbonitasoft%2Fstudio%2Fproperties%2Fsections%2Fconnectors%2Fwizards%2F#path_bonita-studio_trunk_plugins_org.bonitasoft.studio.properties_src_org_bonitasoft_studio_properties_sections_connectors_wizards_
* Class SelectConnectorWizardPage.
Comment 3 Eclipse Webmaster CLA 2019-09-06 15:37:04 EDT
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.