Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Contentassist for imports
Contentassist for imports [message #900445] Tue, 07 August 2012 07:05 Go to next message
Amneris T is currently offline Amneris TFriend
Messages: 15
Registered: June 2012
Junior Member

I have a simple grammar, using the ImportNamespacesScopingFragment and in the grammar rules
Model returns Model:

	'import' importedNamespace=FqnWithWildCard;

	FQN ('.*')?;

	ID ('.' ID)*;

This works fine for shortening the names of referenced model elements. But if it comes to conetentassist after the 'import' keyword, nothing is proposed by xtext...
for example if I want to import a class from a package i would expect all classes as a proposal after i enter packagename._

Am I missing something or is this feature not supported?

Best regards
Re: Contentassist for imports [message #900457 is a reply to message #900445] Tue, 07 August 2012 07:51 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1178
Registered: July 2009
Senior Member

this is not supported out of the box. You have to implement that yourself.


Need training, onsite consulting or any other kind of help for Xtext?
Go visit or send a mail to
Previous Topic:Why hyperlink is broken when corresponding Xtext resource is moved?
Next Topic:scoping Problem?
Goto Forum:

Current Time: Fri Oct 09 16:05:02 GMT 2015

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

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