Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Outline "within" Project Explorer?
Outline "within" Project Explorer? [message #882282] Wed, 06 June 2012 03:25 Go to next message
Eclipse UserFriend
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 03:41] by Moderator

Re: Outline "within" Project Explorer? [message #882399 is a reply to message #882282] Wed, 06 June 2012 07:50 Go to previous message
Eclipse UserFriend
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
Previous Topic:Problem with quick fixes
Next Topic:quotation marks
Goto Forum:
  


Current Time: Sat Jul 05 06:56:09 EDT 2025

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

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

Back to the top