Remove unused import

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Make really, really sure that ImageJ 1.x is initialized before use

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Accomodate legacy command-line needs in the IJ1Helper

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Handle legacy command-line arguments

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Use the context class loader for the legacy environment

We cannot be sure that the class loader to be used is the exact class
loader that loaded imagej-legacy. A child of that class loader might be
desired, e.g. to add paths for additional ImageJ 1.x plugins.

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

The commandsTable *should* be initialized. But it might not be...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Let the ij1Helper dispose of the LegacyUI

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Show the full version even in the LegacyUI

This allows us to show the ImageJ2 version along with the legacy version.

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

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