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

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

Alex
Previous Topic:Why hyperlink is broken when corresponding Xtext resource is moved?
Next Topic:scoping Problem?
Goto Forum:
  


Current Time: Wed Aug 24 05:23:03 GMT 2016

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

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