Eclipse plugin using jruby available

I just put up an Eclipse plugin that demo’s using jruby to extend
Eclipse. The plugin is simple, it just reads in a ruby file and
creates a view that displays the results of whatever ruby method you
put there.

The interesting thing isn’t so much the demo (although it’s useful;
I’ve got it turning Java into

 html sections), it’s the idea of
making it much easier to do runtime changes to your Eclipse
environment. Eclipse plugins are pretty painful, and being able to
just make a change to a ruby file, hit the ‘reload’ button, and see
things happen in Eclipse has interesting potential IMHO.

It’s up at github - https://github.com/banshee/JrubyEclipsePlugin

James M.
[email protected]
http://blog.restphone.com/

On Wed, Sep 21, 2011 at 1:47 PM, James M. [email protected]
wrote:

I just put up an Eclipse plugin that demo’s using jruby to extend
Eclipse.

And as part of playing with that, I started using asm
(http://asm.ow2.org/)
to parse class files.

JRuby makes it really nice, compared to the java way of doing things.
This
code is all you need to walk through a class file printing out
everything,
including byte code:

require ‘java’

include org.objectweb.asm::ClassVisitor
super
class_reader = org.objectweb.asm::ClassReader.new fis

v = SampleVisitor.new

class_reader.accept v, 0

puts
end

(Posted on my blog, too, in case email eats the code formatting -
http://blog.restphone.com/2011/09/more-jruby-asm.html)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs