oaw: Outline View not working in xtext generated editor [message #376926] |
Sat, 28 April 2007 09:47  |
Eclipse User |
|
|
|
Hi all, I have generated an editor with the xtext wizard (my.dsl), wrote
a small grammar and generated the editor. The editor works fine for the
grammar, content folding works but the outline view remains empty.
I think I saw a working outline on jax 2007, is there a trick to get it
working?
Thanks,
Andreas
|
|
|
Re: oaw: Outline View not working in xtext generated editor [message #376933 is a reply to message #376926] |
Tue, 01 May 2007 13:43  |
Eclipse User |
|
|
|
Andreas Voss wrote:
> Hi all, I have generated an editor with the xtext wizard (my.dsl), wrote
> a small grammar and generated the editor. The editor works fine for the
> grammar, content folding works but the outline view remains empty.
>
> I think I saw a working outline on jax 2007, is there a trick to get it
> working?
>
> Thanks,
> Andreas
There are two extensions (one for the labels, one for the images)
located in the extension file in the editor project you have to overwrite.
The default implementation looks for a property 'name' and invokes it.
If there is no such property the element (and it's children) will not be
displayed in the outline view.
Sven
|
|
|
Re: oaw: Outline View not working in xtext generated editor [message #581593 is a reply to message #376926] |
Tue, 01 May 2007 13:43  |
Eclipse User |
|
|
|
Andreas Voss wrote:
> Hi all, I have generated an editor with the xtext wizard (my.dsl), wrote
> a small grammar and generated the editor. The editor works fine for the
> grammar, content folding works but the outline view remains empty.
>
> I think I saw a working outline on jax 2007, is there a trick to get it
> working?
>
> Thanks,
> Andreas
There are two extensions (one for the labels, one for the images)
located in the extension file in the editor project you have to overwrite.
The default implementation looks for a property 'name' and invokes it.
If there is no such property the element (and it's children) will not be
displayed in the outline view.
Sven
|
|
|
Powered by
FUDForum. Page generated in 0.03844 seconds