Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » resolve cross-reference in LabelProvider
icon5.gif  resolve cross-reference in LabelProvider [message #751360] Wed, 26 October 2011 03:25 Go to next message
Kevin Sun is currently offline Kevin SunFriend
Messages: 32
Registered: August 2010
Location: China
Member

I try to get text from label provider when I create an EObjectDescription. But in the label provider, I resolve some cross-reference to get the object. Based on the object I get, I obtain some information which is used to form the text string.

This strategy will cause "Cyclic resolution of lazy links".

What can I do to solve this problem?

Shell I not access label provider when EObjectDescription is created or not resolve any cross-reference in the label provider implementation?
Re: resolve cross-reference in LabelProvider [message #752380 is a reply to message #751360] Wed, 26 October 2011 11:22 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
As the label provider is an UI service and the IEObjctDescriptions are
also available in an non-UI scenario, this sounds like a bad idea.

Have you tried customizing the IQualifiedNameProvider instead?

Am 26.10.11 05:25, schrieb Kevin Sun:
> I try to get text from label provider when I create an
> EObjectDescription. But in the label provider, I resolve some
> cross-reference to get the object. Based on the object I get, I obtain
> some information which is used to form the text string.
> This strategy will cause "Cyclic resolution of lazy links".
>
> What can I do to solve this problem?
>
> Shell I not access label provider when EObjectDescription is created or
> not resolve any cross-reference in the label provider implementation?
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:How to resolve cross-references from xtext to xmi?
Next Topic:Xtend doesn't resolve extension methods
Goto Forum:
  


Current Time: Fri Apr 26 04:20:19 GMT 2024

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

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

Back to the top