Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » oaw: Outline View not working in xtext generated editor
oaw: Outline View not working in xtext generated editor [message #376926] Sat, 28 April 2007 09:47 Go to next message
Andreas Voss is currently offline Andreas Voss
Messages: 51
Registered: July 2009
Member
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 Go to previous message
Sven Efftinge is currently offline Sven Efftinge
Messages: 1761
Registered: July 2009
Senior Member
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


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Re: oaw: Outline View not working in xtext generated editor [message #581593 is a reply to message #376926] Tue, 01 May 2007 13:43 Go to previous message
Sven Efftinge is currently offline Sven Efftinge
Messages: 1761
Registered: July 2009
Senior Member
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


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Previous Topic:[Epsilon] Informations about transformations strategies
Next Topic:Re: [TCS] TCS reference
Goto Forum:
  


Current Time: Mon Sep 01 21:57:38 EDT 2014

Powered by FUDForum. Page generated in 0.01590 seconds