Skip to main content



      Home
Home » Modeling » TMF (Xtext) » qulified names(delimiter as dot)
qulified names [message #759868] Wed, 30 November 2011 07:07 Go to next message
Eclipse UserFriend
Hallo all,

is it possible to change the QualifiedName delimiter to : instead of dot ?
e.g. ref = [Type|MyQName]
MyQName: ID':'ID;

if yes where?

Thanks,
Mokhtar
Re: qulified names [message #759869 is a reply to message #759868] Wed, 30 November 2011 07:13 Go to previous messageGo to next message
Eclipse UserFriend
see IQualifiedNameConverter

~Christian
Re: qulified names [message #759872 is a reply to message #759869] Wed, 30 November 2011 07:22 Go to previous message
Eclipse UserFriend
Create a new class which extends IQualifiedNameConverter.DefaultImpl and in which you override the getDelimiter method. For instance:

public class CppQualifiedNameConverter extends
		IQualifiedNameConverter.DefaultImpl {
	@Override
	public String getDelimiter() {
		return "::";
	}
}


You then have to bind that class in your runtime module:

	public Class<? extends IQualifiedNameConverter> bindIQualifiedNameConverter() {
		return CppQualifiedNameConverter.class;
	}
Previous Topic:[Xtext 2.1] Fully qualified names export and ScopeProvider
Next Topic:How to write Content Assist
Goto Forum:
  


Current Time: Wed Jul 16 21:01:35 EDT 2025

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

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

Back to the top