Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Is it possible to define the java-type of a variable in jruby to enable autocompletion?
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 is currently offline Al BundyFriend
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
Previous Topic:[Tcl] [JACL] Want to use jacl as the DLTK Interpreter
Next Topic:DLTK indexes' load is not being performed
Goto Forum:
  


Current Time: Tue Oct 15 03:25:13 GMT 2024

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

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

Back to the top