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
Branches
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 ...@@ -114,6 +114,7 @@ public class SelectionController< T extends RealType< T > & NativeType< T > > im
run.setOnAction( actionEvent -> run.setOnAction( actionEvent ->
{ {
run(); run();
} ); } );
...@@ -221,7 +222,6 @@ public class SelectionController< T extends RealType< T > & NativeType< T > > im ...@@ -221,7 +222,6 @@ public class SelectionController< T extends RealType< T > & NativeType< T > > im
{ {
parentController.getPreprocessingController().checkParameters(); parentController.getPreprocessingController().checkParameters();
checkParameters(); checkParameters();
// parentController.getPreprocessingController().create4dimImage();
if (! parentController.getPreprocessingController().getInteractor().getModel().getParameterChanged().get() && ! getModel().getParameterChanged().get()) if (! parentController.getPreprocessingController().getInteractor().getModel().getParameterChanged().get() && ! getModel().getParameterChanged().get())
{ {
showInfo( new NoParameterChangeException() ); showInfo( new NoParameterChangeException() );
... ...
......
...@@ -31,7 +31,9 @@ package fr.pasteur.ida.zellige.gui.exception; ...@@ -31,7 +31,9 @@ package fr.pasteur.ida.zellige.gui.exception;
public class NoInputException extends 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 @Override
public String getMessage() public String getMessage()
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment