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 13:47 Go to next message
Andreas Voss is currently offline Andreas VossFriend
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 17:43 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1771
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 17:43 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1771
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 Dec 22 21:28:09 GMT 2014

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

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