Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » resolve cross-reference during creating EObjectDescription
icon5.gif  resolve cross-reference during creating EObjectDescription [message #734805] Mon, 10 October 2011 02:01 Go to next message
Kevin Sun is currently offline Kevin SunFriend
Messages: 32
Registered: August 2010
Location: China
Member

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 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
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.
icon10.gif  Re: resolve cross-reference during creating EObjectDescription [message #735162 is a reply to message #734839] Tue, 11 October 2011 06:43 Go to previous message
Kevin Sun is currently offline Kevin SunFriend
Messages: 32
Registered: August 2010
Location: China
Member

Thanks for your answer, Sebastian.
Previous Topic:call interpreter
Next Topic:Synchronization issues in the Outline view
Goto Forum:
  


Current Time: Sat Apr 27 03:52:59 GMT 2024

Powered by FUDForum. Page generated in 0.03366 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top