Commit b8af8a1c authored by Luc Deschenaux's avatar Luc Deschenaux

fix JP46_Reader_camera showGui

parent ace015f7
...@@ -82,14 +82,14 @@ public class JP46_Reader_camera implements PlugIn, ActionListener { ...@@ -82,14 +82,14 @@ public class JP46_Reader_camera implements PlugIn, ActionListener {
} }
public JP46_Reader_camera(Boolean showGui) { public JP46_Reader_camera(Boolean showGui) {
initGui(showGui); if (showGui) initGui();
} }
public JP46_Reader_camera() { public JP46_Reader_camera() {
initGui(true); initGui();
} }
private void initGui(Boolean showGui) { private void initGui() {
if (headless) return; if (headless) return;
if (IJ.versionLessThan("1.39t")) return; if (IJ.versionLessThan("1.39t")) return;
...@@ -1308,6 +1308,7 @@ Exception in thread "Thread-3564" java.lang.ArrayIndexOutOfBoundsException: 8970 ...@@ -1308,6 +1308,7 @@ Exception in thread "Thread-3564" java.lang.ArrayIndexOutOfBoundsException: 8970
* image and calls the plugin, e.g. after setting breakpoints. * image and calls the plugin, e.g. after setting breakpoints.
* Grabbed from https://github.com/imagej/minimal-ij1-plugin * Grabbed from https://github.com/imagej/minimal-ij1-plugin
* @param args unused * @param args unused
*/
public static void main(String[] args) { public static void main(String[] args) {
// set the plugins.dir property to make the plugin appear in the Plugins menu // set the plugins.dir property to make the plugin appear in the Plugins menu
Class<?> clazz = JP46_Reader_camera.class; Class<?> clazz = JP46_Reader_camera.class;
...@@ -1319,7 +1320,7 @@ Exception in thread "Thread-3564" java.lang.ArrayIndexOutOfBoundsException: 8970 ...@@ -1319,7 +1320,7 @@ Exception in thread "Thread-3564" java.lang.ArrayIndexOutOfBoundsException: 8970
// run the plugin // run the plugin
IJ.runPlugIn(clazz.getName(), ""); IJ.runPlugIn(clazz.getName(), "");
} }
*/
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment