Is it possible to define the java-type of a variable in jruby to enable autocompletion? [message #1573451] |
Mon, 19 January 2015 19:10 |
Al Bundy Messages: 27 Registered: November 2011 |
Junior Member |
|
|
Hi,
I have two projects in my workingset - the first one is a java-project with the main application, the second one is a dltk-project (jruby) with some customizing artefacts that can be deployed in the java-application.
The java-application puts different objects in the ScriptContext e. g. $object and $tool - depending on purpose of the artefact both variables can contain different types ($object is always the currently edited POJO and $tool is an utility-class for the scripts).
Is there a way to define the type of the variables to have autocompletion in the editor?
E. g.
#magiccomment $object = com.myapp.dataobjects.BusinesspartnerDO
#magiccomment $tool = com.myapp.server.ServerScriptTool
now writing $object.set + ctrl+space should list all setters from com.myapp.dataobjects.BusinesspartnerDO
Is something like this possible?
Al
|
|
|
Powered by
FUDForum. Page generated in 0.03050 seconds