Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Java Autocomplete for Drools

I read that Jboss Drools Autocomplete for Eclipse is disabled.

My objective now, is to use Java Autocomplete for .drl files (I'm developing my drl rules with dialect "java").

Does anyone knows how I can use Java Autocomplete in Eclipse for my .drl files?

Thank you in Advance, Oriol

like image 398
user1592470 Avatar asked Oct 18 '25 10:10

user1592470


1 Answers

You can get this happening by going to Preferences -> General -> Content types and adding *.drl as a sub-type of Java source.

This will get Java content assist working in .drl files, but it will unfortunately do a whole lot more. It will send your drl files to the Java compiler and it will show error markers for malformed Java code (and drl files contain lots of that).

You can turn off lots of this through various preferences:

  1. add *.drl files to the exclusion filters of your classpath or place them outside of the classpath altogether.
  2. Go to Preferences -> Java -> Editor and disable "Report problems as you type". No error markers in drl file. But, this will also affect your java files.

So, there is no complete solution here, but you can get some of what you want.

like image 154
Andrew Eisenberg Avatar answered Oct 20 '25 23:10

Andrew Eisenberg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!