|
Re: [XText] organize outline view [message #496203 is a reply to message #496196] |
Mon, 09 November 2009 10:48 |
Tim Messages: 21 Registered: August 2009 |
Junior Member |
|
|
I think the sample below is what you are looking for. I created a new rule for all the parts that I want to group together!
elements+=
"Include:" includes+=Includes
| "Beliefs:" beliefs+=Beliefs
;
Includes:
(include+=Include)+;
Include:
includeName=ID;
Beliefs:
(belief+=Belief)+;
Belief:
atom+=Atom "."
Hope it helps you getting there!
Regards,
Tim
[Updated on: Mon, 09 November 2009 10:49] Report message to a moderator
|
|
|
|
Re: [XText] organize outline view [message #496299 is a reply to message #496288] |
Mon, 09 November 2009 16:06 |
Michael Burkhardt Messages: 64 Registered: July 2009 |
Member |
|
|
Hi Sebastian,
thanks for reply.
I found my DSL transformer. My problem is, that for every instance of Include
(subclass of EObject), the method is called. For every call a new group will be
created.
Is there a sample for virtual outline nodes?
(except for http://www.eclipse.org/Xtext/documentation/0_7_2/xtext.html# outline)
For example my XText model is:
Root :
Include | Service ;
All includes should be grouped into a virtual ContentOutlineNode. the sequence
of Services and Includes can be mixed, but the includes should be grouped at the
top of my outline.
Ciao, Micha
--- Original-Nachricht ---
Absender: Sebastian Zarnekow
Datum: 09.11.2009 16:47
> Hi Michael,
>
> you may want to have a look at the generated MyDslTransformer in the
> *.outline package in your ui plugin. It allows to customize the
> structure of the outline view.
>
> #newOutlineNode(parent, label, image, location) will help to instantiate
> nodes that do not mirror a semantic object but are kind of virtual nodes
> or logical groups.
>
> Regards,
> Sebastian
|
|
|
Re: [XText] organize outline view [message #659044 is a reply to message #496288] |
Thu, 10 March 2011 19:16 |
|
Hi Sebastian,
I have a similar problem like Michael.
I did not found a method newOutlineNode with the mentioned signature in AbstractDeclarativeSemanticModelTransformer. There is a method with this name but only two parameters.
Can you provide a code snippet that shows how to introduce virtual outline nodes?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03795 seconds