Hi,

we have a Netbeans plugin for our application that mainly allows you to create 
a ".groovy" script on the fly that will be placed under the system temp 
folder.The problem we have is that, when the groovy class is created, Netbeans 
does not recognize imports and code autocompletion is not available.

Netbeans correctly resolves imports like:

import java.util.List

although the groovy file is in the system temp folder, but fails in resolving 
all others e.g.

import groovy.transform.CompileStatic
import org.apache.syncope.core.persistence.api.dao.Reportlet
import org.xml.sax.SAXException
import java.util.concurrent.atomic.AtomicReference

Any idea on how to set a specific classpath to the plugin source code (we know 
what dependencies to add but don't know where to put them in order to let 
groovy scripts see them) so that Netbeans will recognize related imports and so 
code autocompletion will be available?

Best regards,
Rohan


Reply via email to