models referencing across editors [message #1117401] |
Thu, 26 September 2013 07:58  |
Eclipse User |
|
|
|
Hello,
I am kind of looking for a proper way to model this case.
I have like 4 generated editors for each ecore model that I created. "modela.a , modelb.b, modelc.c, modeld.d". However, there is a kind of references between the models, forexample : modela.a have elements called 'Node' which referencing elements Tree in model.B.
How when I am opening the editor of modela.a, I can retrieve the needed elements from modelb.b at the design time.
the only thing that I can think of is loading the other models as a resources in the editor.. Please do correct me if this is not a correct approach ..
|
|
|
|
|
|
|
Re: models referencing across editors [message #1222328 is a reply to message #1222157] |
Fri, 20 December 2013 01:58  |
Eclipse User |
|
|
|
Thankx Ed for the reply ,
WEll, I tried this at the beginning , but it seems the property views always read from the viewer input , so only the elements from the resources set that I picked will be shown and it is not what I want ..
SO what I did , I set the input to the viewer to the whole resource set (my three model) , and then I setup a viewer filter to show only the resource set that I am interest in... the property view at the same time will keep showing the elements from the three models.
The only problem I have now , is when ever I update one model "add new elements" in its own editor , the other models can't see the new changes
any suggestion !!??
thanks
Salwa
[Updated on: Fri, 20 December 2013 04:12] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04537 seconds