Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Polymorphism based filtering JVM types proposal
Polymorphism based filtering JVM types proposal [message #846146] Sun, 15 April 2012 16:24 Go to next message
Eclipse UserFriend
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 17:09 Go to previous messageGo to next message
Eclipse UserFriend
http://kthoms.wordpress.com/2012/03/14/how-to-limit-proposed-java-types-to-implementors-of-an-interface/
icon14.gif  Re: Polymorphism based filtering JVM types proposal [message #846265 is a reply to message #846179] Sun, 15 April 2012 19:25 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 11:34:11 EDT 2025

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

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

Back to the top