Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Limit proposed Java types to certain packages(XText/XBase)(Limit Proposal to certain packages)
Limit proposed Java types to certain packages(XText/XBase) [message #1745089] Tue, 04 October 2016 23:01 Go to next message
Sonia Ravindran is currently offline Sonia RavindranFriend
Messages: 16
Registered: June 2016
Junior Member
Currently I use XMemberFeatureCall in my XText grammar.
action = XMemberFeatureCall

By default i get all the Java Classes and its members in the proposal.
Will I be able to restrict the proposal for XMemberFeatureCall only to certain Java Packages.
Re: Limit proposed Java types to certain packages(XText/XBase) [message #1745094 is a reply to message #1745089] Wed, 05 October 2016 04:16 Go to previous message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Hi Sonia,

I believe you should be customizing the proposal provider. You might like to take a look at the following links -

https://eclipse.org/Xtext/documentation/310_eclipse_support.html#content-assist
http://xtextcasts.org/episodes/17-restricting-scope?autoplay=true

Hope this helps. Tx.


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Previous Topic:error EXPAND
Next Topic:absolute paths in ._trace files
Goto Forum:
  


Current Time: Fri Apr 26 18:37:36 GMT 2024

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

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

Back to the top