I'm trying to write an Eclipse rcp application using only jruby, or at least with only the strictly necessary amount of java. As only a few lines of pure ruby code will give you a basic SWT application, I was hoping, that writing an rcp application in jruby should boil down to implementing a few classes, like IApplication, and so on... Disclaimer: I have been working with (j)ruby for several years but have almost no java or rcp experience for that matter.
What seems viable is to stick with the template generated by Eclipse and call ruby classes from there. However: is it possible to use pure ruby?
There seems to be some magic that glues all the classes of an rcp application together. A good deal of that magic probably resides in plugin.xml in the root directory of an rcp project. However, when I look at the command line of a running rcp application there are quite a lot of framework parameters...
Searching for keywords like "eclipse, rcp, jruby" did not give me the result I hoped for. There is one project which essentially seems to be going in the direction of calling ruby classes from a java skeleton. No pure ruby.
Purpose: the application I'm looking to write will process time series. This tasks nicely fits IMHO into the concept of perspectives in an rcp application:
- Select time series,
- Build a model,
- Analyze the result.
Also, processing time series is nice in a workbench environment: you can have lots of windows open, group them, and so on...
So, I guess, my primary question is: do you have any pointers, how to write an Eclipse rcp application in ruby? But I'm also open to completely different suggestions for the task at hand.
George