Skip to main content



      Home
Home » Modeling » TMF (Xtext) » IQualifiedNameProvider: using referenced objects to calculate elements name?! (Getting a "cyclic resolution of lazy links")
IQualifiedNameProvider: using referenced objects to calculate elements name?! [message #528743] Wed, 21 April 2010 11:48 Go to previous message
Eclipse UserFriend
My DSL has an Element whose name is derived from the name of a referenced element.

In xtext 0.7.2 this was no problem. Now in xtext 1.0.0 this doesn't work any more because of the mentioned "cyclic resolution".

How can i circumvent this?

Service:
	....
	entity=[Entity]


public class MyQualifiedNameProvider extends SimpleNameProvider {
	
	public String getQualifiedName(EObject e) {
		if(e instanceof Service){			
			return (Service)e).getEntity().getName()+"Service";
		}
		return super.getQualifiedName(e);
	}
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Xtext grammar from an existing ecore metamodel, programmatically setting required features
Next Topic:Please help me with my grammer
Goto Forum:
  


Current Time: Sun Jul 20 22:38:59 EDT 2025

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

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

Back to the top