Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to limit the global scope
How to limit the global scope [message #888471] Mon, 18 June 2012 02:55 Go to next message
Eclipse UserFriend
Hi all,

the documentation suggests to bind an own implementation of
IResourceDescription.Manager in order to limit the exported objects in a
certain resource.
The javadoc of DefaultResourceDescriptionManager however says that
customisation should be done by implementing a custom
IDefaultResourceDescriptionStrategy.

Is there a example somewhere demonstrating how this looks like in practice?
In my use case I want only a certain type being exported, all other named
elements should only be visible within the local resource.

Thanks for your help,

Axel
Re: How to limit the global scope [message #888477 is a reply to message #888471] Mon, 18 June 2012 03:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi simply straight forward overriding
defaultresourcedescriptionstrategy.createaEObjectDescriptions doesnt
work ?
Re: How to limit the global scope [message #888505 is a reply to message #888477] Mon, 18 June 2012 03:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christian,

thanks I will try it out. Just wanted to ensure it is the correct entrypoint
to hook into :-)


Christian Dietrich wrote:

> Hi simply straight forward overriding
> defaultresourcedescriptionstrategy.createaEObjectDescriptions doesnt
> work ?
Re: How to limit the global scope [message #888511 is a reply to message #888505] Mon, 18 June 2012 04:05 Go to previous message
Eclipse UserFriend
Works perfectly, thanks again!
Previous Topic:How to add copyright headers to generated sources
Next Topic:Java heap space
Goto Forum:
  


Current Time: Tue Jul 22 19:35:22 EDT 2025

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

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

Back to the top