|
|
Re: Adding invalid references in Xtext [message #1258502 is a reply to message #1258468] |
Thu, 27 February 2014 13:00 |
|
Hi Christian,
Like in my use case I read SomeObj from a excel file and then add it to resource. Even these reference names are present in that excel file.
So blindly I want add the references.
Later I will create an Entity for that or it will be already available in some DSL.
Regards,
Arshad
Arshad
|
|
|
|
Re: Adding invalid references in Xtext [message #1258543 is a reply to message #1258525] |
Thu, 27 February 2014 13:44 |
|
Hi Uli, Christian,
I am actually importing this data into my DSL, so while importing only i want to import invalid references too.
I will explain it with an example.
Say I have in my DSL 2 entities Entity1 and Entity2.
Now I will right click on the editor and select "Import SomeObj" option which is a Handler for me.
Now SomeObj is read from an excel file and say that it is referencing 4 entities Entity1 , Entity2 , Entity3 , Entity4.
So in my editor already 2 valid references are existing and I will refer to it.
But still I want to create references (INVALID) for Entity3 and Entity4. So that they appear in the editor, with an error.
Arshad
|
|
|
|
|
Re: Adding invalid references in Xtext [message #1259191 is a reply to message #1258602] |
Fri, 28 February 2014 05:36 |
|
Hi Christian,
As I explained in my previous message taking example of Entity1,Entity2,Entity3,Entity4.
Suppose I have two model files a.model and b.model. a.model and b.model has same namespace. Say b.model has Entity3 and Entity4.
And when I import data in a.model I get references to all the entities Entity1,Entity2,Entity3,Entity4.
Entity1,Entity2 are already present in a.model but not Entity3,Entity4.
SO, Entity3,Entity4 are invalid references for me when serializing it.
But once the data is imported, all references will become valid as Entity3,Entity4 are already present in b.model under the same namespace.
Regards,
Arshad
Arshad
|
|
|
|
Powered by
FUDForum. Page generated in 0.03613 seconds