resolve cross-reference during creating EObjectDescription [message #734805] |
Mon, 10 October 2011 02:01 |
|
Is it recommended not to resolve cross-reference during creating EObjectDescription for ResourceDescription?
When I run the junit for xtext, the editor tried to resolve a cross-reference. During that process, it tried to get object from a DescriptionAddingContainer. Then it has to create EObjectDescription for the resource. Because I customized the ResourceDescriptionStrategy to resolve some cross-references, the "Cyclic resolution of lazy links" error was triggered.
But when I run the editor in interactive mode, the IContainer will be StateBasedContainer instead of DescriptionAddingContainer. And in this case, when the editor resolves a cross-reference, it will not create EObjectDescription. In other words, I think, the creating EObjectDescription will not execute because of resovling some cross-reference.
|
|
|
Re: resolve cross-reference during creating EObjectDescription [message #734839 is a reply to message #734805] |
Mon, 10 October 2011 06:47 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Kevin,
yes, it is strongly recommended to not resolve cross-references in order
to create EObjectDescriptions.
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
On 10.10.11 04:01, Kevin Sun wrote:
> Is it recommended not to resolve cross-reference during creating
> EObjectDescription for ResourceDescription?
>
> When I run the junit for xtext, the editor tried to resolve a
> cross-reference. During that process, it tried to get object from a
> DescriptionAddingContainer. Then it has to create EObjectDescription for
> the resource. Because I customized the ResourceDescriptionStrategy to
> resolve some cross-references, the "Cyclic resolution of lazy links"
> error was triggered.
>
> But when I run the editor in interactive mode, the IContainer will be
> StateBasedContainer instead of DescriptionAddingContainer. And in this
> case, when the editor resolves a cross-reference, it will not create
> EObjectDescription. In other words, I think, the creating
> EObjectDescription will not execute because of resovling some
> cross-reference.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03366 seconds