Jython, JRuby, Groovy and PSI

Jython, JRuby, and Groovy are all languages that run on the JVM. It would be great if they could be edited and navigated and refactored in IDEA like Java code can be. Is something like this possible with the current OpenAPI? That is, could someone make a plugin so that when I rename a Java method I call from within Groovy, that method call is changed; and so I could Ctrl+Click Java code that calls a method defined in a Jython class to jump to the Jython source code?

I've used the PSI API a little before (for my Modifier Modifier Plugin) but I can't tell if something like this would be possible. Can someone with more PSI experience answer?

4 comments
Comment actions Permalink

Its a cool idea. I also wolud like to have such mechanism for OGNL expressions.

0
Comment actions Permalink

That would be really cool.
But if such a feature should be implemented, I'd recommend to start with BeanShell (www.beanshell.org) as the syntax is much closer to java than Jython, JRuby or Groovy so would probably be easier...

And also because I use beanShell and not the others ;D

Cheers

0
Comment actions Permalink

On Thu, 08 Apr 2004 12:12:22 +0000, xrd1305 wrote:

And also because I use beanShell and not the others ;D


Beenshell is purely scripting thou AFAIK, wheras the others compile down
to .class files ( exposing there compilers to the new CompilersAPI would
be cool as well. )

0
Comment actions Permalink

+1

Given groovy has just been accepted into the JSR (JCP?) process (I'm unclear on the terminology here, but it's been accepted), it might make a more legitimate starting point.

0

Please sign in to leave a comment.