Editor related issues in xtext [message #1256255] |
Tue, 25 February 2014 08:46 |
|
Hi all,
I have some content in my editor something like:
Entity entity1 {
entityName Name1
...
...
}
Entity entity2 {
entityName Name2
...
...
}
For me some of the entities are used and some are unused.
MY FLOW OF EXECUTION: In the beginning I will have an empty xtext editor. On right click on the editor I have provided an option to import entities from some file which will look as mentioned above.
Now, on right click on editor I have provided one more option which will segregate used and unused entities which will look something like:
Segr seg1 {
used [...]
unused [...]
}
Segr seg2 {
used [...]
unused [...]
}
These used and unused parts are referencing to Entities.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Now two use cases:
1. I already have entities in my editor then I right click and select to import segregators.
For this case references are added properly and everything works fine for me.
2. Suppose my editor is empty i.e my resource doesn't have anything. I right click and select import segregators. So before segregators are imported, I must have some entities, so in the background I am adding some entities and then calling segregator functionality for these entities. I am making sure that I am adding entities to the resource and then for this resource I am calling segregator functionality. Even If my resource has entities (BUT STILL ENTITIES ARE NOT PRESENT IN EDITOR ), I AM UNABLE TO ADD REFERENCES.
ONLY I AM ABLE TO ADD REFERENCES IF DATA IS PRESENT IN THE EDITOR.
AM I MISSING OUT SOMETHING OR ITS THE PROPERTY OF THE EDITORS/RESOURCES ?
Thanks for your help
Arshad
[Updated on: Tue, 25 February 2014 08:47] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03662 seconds