"Couldn't resolve reference" problem with programmatically created object [message #1348016] |
Sun, 11 May 2014 07:04  |
Eclipse User |
|
|
|
Hi,
At some points, I have to create objects from a program (grammar has a kind of Type-Object with property inheritance). The ProposalProvider retrieves correctly my object, but I get a "couldn't resolve reference error". Any hint ?
for info, if useful, here is the idea behind what I have in my grammar:
Type :
'type' name=ID 'properties {'
properties+=Property
'}';
Property :
name=ID;
// object must inherit from the properties of its type
Object :
'object' name=ID type=[Type|FQN]';';
SomeRule :
'somerule' prop=[ConcreteProperty|FQN]';';
// the ConcreteProperty is the object I manually create from code (exists in the metamodel), which inherits from Property and augmented with a feature 'inObject' -> Object
// such that I may be able to do something like in the following concrete model snippet
type MyType properties {
aProperty
}
object myObject MyType;
somerule myObject.aProperty;
// the proposal provider gives the right stuff, but it is marked as error with "couldn't resolve reference"
I also tried to just add the object in the feature (so having the 'inObject' feature in the Property EObject and creating the link myself) instead of creating a new one, the result was the same: correctly proposed, but marked as error.
Any clue? Or someone can point me to the class that is responsible for these checks so that I can debug it?
Thanks in advance,
Fabian
[Updated on: Sun, 11 May 2014 07:19] by Moderator
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05229 seconds