Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Outline "within" Project Explorer?
Outline "within" Project Explorer? [message #882282] Wed, 06 June 2012 07:25 Go to next message
Ralph Mayr is currently offline Ralph MayrFriend
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 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
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
Previous Topic:Problem with quick fixes
Next Topic:quotation marks
Goto Forum:
  


Current Time: Fri Oct 30 22:54:38 GMT 2020

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

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

Back to the top