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
Hi,

I have a simple grammar, using the ImportNamespacesScopingFragment and in the grammar rules
Model returns Model:
	(imports=Import)?

Import:
	'import' importedNamespace=FqnWithWildCard;

FqnWithWildCard:
	FQN ('.*')?;


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
Amneris
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: 1162
Registered: July 2009
Senior Member
Hi,

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

Alex


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


Current Time: Sat Dec 20 22:22:48 GMT 2014

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

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