restriction/clear of index [message #1065938] |
Fri, 28 June 2013 08:21  |
Eclipse User |
|
|
|
Hi,
in my xtext project I'm using ResourceDescriptions for accesing EObjects. Therefor I implemented a ResourceDesciption where the computeExportedObjects method returns the desired objects. Also I've an according ResourceDescriptionManager and ServiceProvider which works so far.
But I observed the following behaviour. When I've several files, for example:
default1.pld: ObjectA, ObjectB, ObjectC
default2.pld: ObjectD, ObjectE
When I work in the default1.pld file, the computeExportedObjects returns the objetcs A,B,C and default2.pld accordingly D and E which is what I expected.
What I expected is that in default1.pld I can only acces the objects A,B,C and in default2.pld only D and E. But rather it is possible to acces all objects in both files (e.g. default1 can see A,B,C,D,E instead of A,B,C).
I'm not really familiar how this is working in xtext, but I reckon all returns of the computeExportedObjects method will be stored in an index?
So is there a way to clear the index before computeExportedObjects is called or even a better solution?
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04699 seconds