Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Expand a newly created Tree element from the create tool (After my create tool is executed I want the Tree element expanded)
Expand a newly created Tree element from the create tool [message #1717780] Wed, 16 December 2015 16:29 Go to next message
Robert Scott is currently offline Robert ScottFriend
Messages: 15
Registered: June 2015
Junior Member
I have a tree element with deeply nested sub-element. My users don't want to click so many times to find the element they need to work on so I specify use semantic candidates=eAllContents() in the parent and they are all shown by just expanding the parent. When I use a create tool on one of the nested elements the newly created element shows in the list but always at the end of the list instead of in the position where it was crated. Refresh does not correct this but if I close and reopen the representation the new element is listed where it should be.
To fix this I made the create tool to create a new parent and copy the contents of the old parent then delete the old parent. Now after the create there is a new UN-expanded parent node which when expanded shows all the sub-elements in the proper order. I would like to hove the node already expanded after the create tool finishes, or another solution to the original problem.
Re: Expand a newly created Tree element from the create tool [message #1718629 is a reply to message #1717780] Mon, 28 December 2015 13:17 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Robert,

I think the bug you talk about is [1].

Best Regards.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=481433

Le 16/12/2015 17:29, Robert Scott a écrit :
> I have a tree element with deeply nested sub-element. My users don't
> want to click so many times to find the element they need to work on so
> I specify use semantic candidates=eAllContents() in the parent and they
> are all shown by just expanding the parent. When I use a create tool on
> one of the nested elements the newly created element shows in the list
> but always at the end of the list instead of in the position where it
> was crated. Refresh does not correct this but if I close and reopen the
> representation the new element is listed where it should be. To fix this
> I made the create tool to create a new parent and copy the contents of
> the old parent then delete the old parent. Now after the create there
> is a new UN-expanded parent node which when expanded shows all the
> sub-elements in the proper order. I would like to hove the node already
> expanded after the create tool finishes, or another solution to the
> original problem.



--
Esteban Dugueperoux - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Programmatically change border color
Next Topic:Extend a Diagram Extension
Goto Forum:
  


Current Time: Tue Apr 16 20:08:02 GMT 2024

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

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

Back to the top