FreeplaneJrubyInstaller Addon

From Freeplane - free mind mapping and knowledge management software
Revision as of 22:19, 13 April 2016 by Zipizap (talk | contribs)


This page is still a work in progress

Hi you found this page before its finished.

My idea is to finish it and **only then** make an announcement in the forum, and ask to add links to it in the addons wiki page.

This is to avoid misunderstandings and be able to explain the addon and how to use it with some good explanations.

So, if you got here congratulations, but keep the secret! The addon is already in github, so if you cant wait anylonger knock yourself out :)


Introduction

This addon adds support for .rb (ruby) scripts in Freeplane, so that you can use .groovy .js and .rb scripts


Freeplane supports .groovy and .js (javascript) scripts out-of-the-box. This addon adds support for .rb (ruby) scripts, enabling you to use: <freeplane-user-dir>/scripts/my_ruby_script.rb besides .groovy and .js scripts.

Also, after this addon is installed, future plugins can as well make use of ruby scripts (via the "scripts" node, just like with .groovy scripts)


All this is possible because Freeplane was programmed with good design (applause to the devs :) ), using JSR223 that allows external scripting engines to be added, such as the Jruby interpreter that is capable of running ruby scripts with access to Java objects (Freeplane-java-objects!).


How to install the FreeplaneJrubyInstaller Addon in Freeplane

You dont need to manually download anything, all downloads are automatic. To install the addon follow the instructions bellow (click on any image to enlarge it):

Img0.png
Img1.png


Img2.png


Img3.png


Img4.png


Img5.png


Img6.png



  • Open Freeplane for a second-time, and:
Img7.png


Img8.png


Img9.png


Img10.png



  • Open Freeplane for a third-time, and:
Img11.png



  • The following final window should appear, which indicates that Jruby is now installed in Freeplane. Hurray, the addon is installed!
Img12.png