Skip to main content



      Home
Home » Modeling » EMF » fully expanding a subtree in model editor
fully expanding a subtree in model editor [message #403373] Mon, 04 September 2006 21:49 Go to next message
Eclipse UserFriend
This is probably an FAQ.

How do you fully expand/unfold a subtree in a model editor?
Is there already a key combination that does this?
If not what does it take to code it up?
Or is there code already available somewhere?

thanks
Daniel
Re: fully expanding a subtree in model editor [message #403379 is a reply to message #403373] Tue, 05 September 2006 06:12 Go to previous message
Eclipse UserFriend
Hi Daniel,

I have no idea whether there is already a key combination. But if not
doing this programatically is not a big thing.

AbstractTreeViewer has a method
public void expandToLevel(Object elementOrTreePath, int level)

Invoking this with the current selection and ALL_LEVELS will do what you
want.

Doing this with the keyboard, mmh I never used key bindings but I
remember there is an extension point.

Regards,
Jan

dmahler@gmail.com schrieb:
> This is probably an FAQ.
>
> How do you fully expand/unfold a subtree in a model editor?
> Is there already a key combination that does this?
> If not what does it take to code it up?
> Or is there code already available somewhere?
>
> thanks
> Daniel
Previous Topic:Question about customizing the .edit plugin using genmodel and ecore?
Next Topic:How to convert .ecore model to .genmodel?
Goto Forum:
  


Current Time: Wed Nov 05 10:50:28 EST 2025

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

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

Back to the top