Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » A question about Containers
A question about Containers [message #685525] Fri, 17 June 2011 17:18 Go to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Hi,
I have a scenario where some resources in a resource set should only see
certain other resources, whereas the majority of the resources should
see everything.

I currently use the ResourceSetBasedAllContainersState (everything is
visible to everything else). Grateful for a hint how to parition this so
I can add some resources that have specific visibility into some of the
other resources.

I looked at the mwe Reader, it seems like it adds containers based on
paths, where each container defines visibility among the content, but
there seems to be no visibility between containers. (Or did I miss
something?)

Regards
- henrik
Re: A question about Containers [message #685559 is a reply to message #685525] Fri, 17 June 2011 18:37 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

not sure, but it might be an option to adapt ResourceSetBasedAllContainersStateProvider adapting the handleAdapterNotFound method. There all "resources" are put into the same container; create different containers there. Then you will have to adapt the getVisibleContainerHandles mehtod in order to reflect visibility. The other option is to adapt ResourceSetBasedAllContainersState directly, sorting the uris into different containers in the configure method, e.g. by using a super-call with an adapted configuration and overriding getVisibleContainerHandles).

Not sure if this helps though,

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: A question about Containers [message #685574 is a reply to message #685559] Fri, 17 June 2011 19:03 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
That is a very good start, and very helpful.
Thanks.
- henrik
On 6/17/11 8:37 PM, Alexander Nittka wrote:
> Hi,
>
> not sure, but it might be an option to adapt
> ResourceSetBasedAllContainersStateProvider adapting the
> handleAdapterNotFound method. There all "resources" are put into the
> same container; create different containers there. Then you will have to
> adapt the getVisibleContainerHandles mehtod in order to reflect
> visibility. The other option is to adapt
> ResourceSetBasedAllContainersState directly, sorting the uris into
> different containers in the configure method, e.g. by using a super-call
> with an adapted configuration and overriding getVisibleContainerHandles).
>
> Not sure if this helps though,
>
> Alex
Previous Topic:How can I trigger Xtext validation?
Next Topic:[Xtext] Xtext conflits with Eclipse ANTLR IDE plugin
Goto Forum:
  


Current Time: Thu Sep 19 22:30:31 GMT 2024

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

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

Back to the top