Skip to content
Snippets Groups Projects
Commit a0e61409 authored by Céline  TREBEAU's avatar Céline TREBEAU
Browse files

feat: Added error popup on Run button click when no image is loaded to prevent...

feat: Added error popup on Run button click when no image is loaded to prevent program execution without required input
parent e54e03bd
No related branches found
No related tags found
2 merge requests!47Feature : Multi-channel and Binning,!41Resolve "Consider rescaling (binning) large images"
......@@ -114,6 +114,7 @@ public class SelectionController< T extends RealType< T > & NativeType< T > > im
run.setOnAction( actionEvent ->
{
run();
} );
......@@ -221,7 +222,6 @@ public class SelectionController< T extends RealType< T > & NativeType< T > > im
{
parentController.getPreprocessingController().checkParameters();
checkParameters();
// parentController.getPreprocessingController().create4dimImage();
if (! parentController.getPreprocessingController().getInteractor().getModel().getParameterChanged().get() && ! getModel().getParameterChanged().get())
{
showInfo( new NoParameterChangeException() );
......
......@@ -31,7 +31,9 @@ package fr.pasteur.ida.zellige.gui.exception;
public class NoInputException extends Exception
{
final String message = " No 3D stack loaded on ImageJ";
final String message = "Oops! No Image Loaded\n" +
"Before running the program, please load an image on Zellige (Input File) .\n" +
"We need it to work our magic! ✨ ";
@Override
public String getMessage()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment