Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Polymorphism based filtering JVM types proposal
Polymorphism based filtering JVM types proposal [message #846146] Sun, 15 April 2012 20:24 Go to next message
Jeff MAURY is currently offline Jeff MAURYFriend
Messages: 44
Registered: July 2009
Member
I have a grammar that reference a Java type.
But I have the constraint that the selected Java class must implements a specific interface or extends another class.
How can I filter the standard proposals ?
I have seen the ITypesProposalProvider.Filter but it is based on class names rather than on Java structure ?

Any idea ?
Regards
Jeff
Re: Polymorphism based filtering JVM types proposal [message #846179 is a reply to message #846146] Sun, 15 April 2012 21:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13488
Registered: July 2009
Senior Member
http://kthoms.wordpress.com/2012/03/14/how-to-limit-proposed-java-types-to-implementors-of-an-interface/

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
icon14.gif  Re: Polymorphism based filtering JVM types proposal [message #846265 is a reply to message #846179] Sun, 15 April 2012 23:25 Go to previous message
Jeff MAURY is currently offline Jeff MAURYFriend
Messages: 44
Registered: July 2009
Member
Thanks for your quick response.

Xtext support is really awesome

Jeff
Previous Topic:Xtext/xtend generating an intf for type
Next Topic:fileContentsToString ?
Goto Forum:
  


Current Time: Sun Jul 05 19:40:05 GMT 2020

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

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

Back to the top