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: 1193
Registered: July 2009
Senior Member

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

Previous Topic:Packages should be imported by their namespace URI.
Next Topic:Method createSequence is exceeding 65535
Goto Forum:

Current Time: Fri May 26 19:01:29 GMT 2017

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

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