Outline "within" Project Explorer? [message #882282] |
Wed, 06 June 2012 07:25 |
Ralph Mayr Messages: 13 Registered: August 2011 |
Junior Member |
|
|
Hello,
I'm looking for a certrain Xtext-feature which I believe that I saw a few years ago, but can't find it now... I want my files (which are being processed by Xtext editors) to have a "small outline" within the project explorer (similar to JDT), so that you can expand a file-node in the project explorer and see its contents right within the project explorer. (Like in JDT where you can expand any *.java-file in the project explorer to see that classes that are defined in this file and so on.)
I know that I could implement this by hand by implementing a navigator content provider (even though I'm not sure how to get access to my model on that level, but I guess I'll figure that out later), but I think I remember that Xtext had a built-in feature for that some time ago...
Can anyone give me a pointer where to look for that? (Maybe I just need to add a special generator fragment or something?)
Thanks in advance,
Ralph.
[Updated on: Wed, 06 June 2012 07:41] Report message to a moderator
|
|
|
Re: Outline "within" Project Explorer? [message #882399 is a reply to message #882282] |
Wed, 06 June 2012 11:50 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
No, that's never been in Xtext. GMF Tooling provides something similar.
Please note that for reasons of scalability and performance you should
not load / parse the resources but use the indexed information instead.
Am 06.06.12 09:25, schrieb Ralph Mayr:
> Hello,
>
> I'm looking for a certrain Xtext-feature which I believe that I saw a
> few years ago, but can't find it now... I want my files (which are being
> processed by Xtext editors) to have a "small outline" within the project
> explorer (similar to JDT), so that you can expand a file-node in the
> project explorer and see its contents right within the project explorer.
> (Like in JDT where you can expand any *.java-file in the project
> explorer to see that classes that are defined in this file and so on.)
>
> I know that I could implement this by hand by implementing a navigator
> content provider (even though I'm not sure how to get access to my model
> on that level, but I guess I'll figure that out later), but I think I
> remember that Xtext had a built-in feature for that some time ago...
> Can anyone give me a pointer where to look for that? (Maybe I just need
> to add a special generator fragment or something?)
>
> Thanks in advance,
> Ralph.
>
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
Powered by
FUDForum. Page generated in 0.02982 seconds