POM: add a dependency on scripting-java

We will need this because that component will soon have a new plugin
type for defining how to execute particular classes. In our case, we are
interested in implementing a JavaRunner for legacy ImageJ 1.x plugins.
Bump pom-imagej to 2.12

This updates the version of scripting-java to the 0.2.0 release, which
contains the new JavaRunner plugin type that we need.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add a JavaRunner for ImageJ 1.x plugins
Switch to non-deprecated ij1-patcher classes

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Avoid NullPointerException

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
LegacyJavaRunner: Handle PlugInFilter, too

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
LegacyJavaRunner: make it work

Unfortunately, we cannot simply hand off to the LegacyService to run
the legacy command because the class is most likely not known to the
PluginClassLoader of ImageJ 1.x.

For now, let's punt and run the class directly (as we used to do in
Fiji's Refresh_Javas plugin). To allow compiling & running classes
that might be known to the PluginClassLoader, we will most likely
jump through hoops. That's next.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge remote-tracking branch 'origin/overengineered-goodness'

This 'overengineered' goodness

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>