Commit f7964616 authored by gonciarz's avatar gonciarz

Test fix

parent c88b64b6
......@@ -6,6 +6,7 @@ import javax.swing.JOptionPane;
import ij.IJ;
import ij.ImagePlus;
import ij.gui.HistogramWindow;
import ij.macro.Interpreter;
import ij.process.FloatProcessor;
......@@ -31,7 +32,7 @@ public class Utils {
* @param aMessage
*/
public static void messageDialog(String aTitle, String aMessage) {
if (IJ.getInstance() != null) IJ.showMessage(aMessage);
if (IJ.getInstance() != null || Interpreter.batchMode == true || IJ.isMacro()) IJ.showMessage(aMessage);
else JOptionPane.showMessageDialog(null, aMessage, aTitle, JOptionPane.PLAIN_MESSAGE);
}
}
......
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