Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Expanding Child Nodes
Expanding Child Nodes [message #727096] Tue, 20 September 2011 11:59 Go to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
I have a Model outline as follows,

Parent - 1
-- child 1
-- Child 2
Parent - 2
-- Child 11
-- Child 22

By default Sapphire rather the Eclipse outline does not show the child noded unless we expand the parent node.

Is it possible to make the parent node automatically expanded and show the child nodes ? or alteast when the parent is selected.

~Kamesh
Re: Expanding Child Nodes [message #727196 is a reply to message #727096] Tue, 20 September 2011 15:27 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
> Is it possible to make the parent node automatically expanded and show the child nodes

Forcing tree expand on node selection would defeat whatever the native behavior is for trees on the given platform and as such would not be appropriate. However, there is an enhancement request open that requests that newly added nodes be shown initially in fully expanded state. That may partially satisfy what you are looking to address.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=357976

- Konstantin
Re: Expanding Child Nodes [message #727292 is a reply to message #727196] Tue, 20 September 2011 19:45 Go to previous messageGo to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
Can we make it to trigger at a click of of button or something, with in our action class ? So that if the user feels he wants to expand it he can .

~Kamesh
Re: Expanding Child Nodes [message #727317 is a reply to message #727292] Tue, 20 September 2011 22:48 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Are you asking if you can make an action that will expand some portion of the tree? Yes, you can do that using the API that I referenced in the other thread. Of course, there are already expand-all/collapse-all buttons in the content outline header...

- Konstantin
Previous Topic:Selecting Outline
Next Topic:Multiple Dev Env and Dev Target
Goto Forum:
  


Current Time: Fri Apr 19 22:10:15 GMT 2024

Powered by FUDForum. Page generated in 0.03444 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top