Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to limit the global scope
How to limit the global scope [message #888471] Mon, 18 June 2012 06:55 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
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 07:10 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14668
Registered: July 2009
Senior Member
Hi simply straight forward overriding
defaultresourcedescriptionstrategy.createaEObjectDescriptions doesnt
work ?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to limit the global scope [message #888505 is a reply to message #888477] Mon, 18 June 2012 07:59 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
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 08:05 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Works perfectly, thanks again!
Previous Topic:How to add copyright headers to generated sources
Next Topic:Java heap space
Goto Forum:
  


Current Time: Fri Apr 26 18:39:40 GMT 2024

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

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

Back to the top