@@ -140,7 +140,7 @@ public class SNTUI extends JDialog {
140140
141141 // UI controls promoted from Options tab
142142 private JCheckBox diametersCheckBox ; // used for for quick-toggle access
143- private JPanel optionsPanel ; // Options tab group holding diametersCheckBox and its sub-panels. //
143+ private final JPanel optionsPanel ; // Options tab group holding diametersCheckBox and its sub-panels. //
144144
145145 private final SNTCommandFinder commandFinder ;
146146 private ActiveWorker activeWorker ;
@@ -1398,7 +1398,7 @@ private void initializeStates() {
13981398 states .put (CALCULATING_HESSIAN_II ,simpleState (CALCULATING_HESSIAN_II ,"Calculating Hessian (II Image).." , "Computing Hessian (secondary image)..." , true , null ));
13991399 states .put (WAITING_FOR_SIGMA_POINT_I , simpleState (WAITING_FOR_SIGMA_POINT_I , "Click on a representative structure..." , "Adjusting Hessian (main image)..." , false , null ));
14001400 states .put (WAITING_FOR_SIGMA_CHOICE , simpleState (WAITING_FOR_SIGMA_CHOICE , "Close 'Pick Sigma & Max' to continue..." , null , false , null ));
1401- states .put (LOADING , simpleState (LOADING , "Loading..." , null , true , null ));
1401+ states .put (LOADING , simpleState (LOADING , "Loading data ..." , null , true , null ));
14021402 states .put (SAVING , simpleState (SAVING , "Saving..." , null , true , null ));
14031403 states .put (EDITING , new EditingState ());
14041404 states .put (SNT_PAUSED , new SntPausedState ());
@@ -2079,18 +2079,8 @@ private void validateImgDimensions() {
20792079 if (plugin .getPrefs ().getTemp (SNTPrefs .RESIZE_REQUIRED , false )) {
20802080 final boolean nag = plugin .getPrefs ().getTemp ("canvasResize-nag" , true );
20812081 if (nag ) {
2082- final StringBuilder sb = new StringBuilder ("Some nodes are being displayed outside the image canvas. To visualize them you can:<ul>" );
2083- String type = "canvas" ;
2084- if (plugin .accessToValidImageData ()) {
2085- type = "image" ;
2086- sb .append ("<li>Use IJ's command Image→Adjust→Canvas Size... and press <i>Reload</i> in the Data Source widget of the Options pane</li>" );
2087- sb .append ("<li>Close the current image and create a Display Canvas using <i>Create Canvas</i> in the Options pane</li>" );
2088- }
2089- else {
2090- sb .append ("<li>Use the <i>Create/Resize Canvas</i> commands in the Options pane</li>" );
2091- }
2092- sb .append ("<li>Replace the current " ).append (type ).append (" using File→Choose Tracing Image...</li>" );
2093- final Boolean userPrompt = guiUtils .getPersistentWarning (sb .toString (), "Image Needs Resizing" );
2082+ final Boolean userPrompt = guiUtils .getPersistentWarning (mismatchedImageWarningMsg (),
2083+ "Mismatched Image Dimensions" );
20942084 if (userPrompt != null ) // do nothing if user dismissed the dialog
20952085 plugin .getPrefs ().setTemp ("canvasResize-nag" , !userPrompt );
20962086 } else {
@@ -2099,6 +2089,24 @@ private void validateImgDimensions() {
20992089 }
21002090 }
21012091
2092+ private String mismatchedImageWarningMsg () {
2093+ if (plugin .isStreamMode ()) {
2094+ return "Some nodes are being displayed outside the image volume: Perhaps reconstruction(s) have been loaded from mismatched file(s)?" ;
2095+ }
2096+ final StringBuilder sb = new StringBuilder ("Some nodes are being displayed outside the image canvas. To visualize them you can:<ul>" );
2097+ String type = "canvas" ;
2098+ if (plugin .accessToValidImageData ()) {
2099+ type = "image" ;
2100+ sb .append ("<li>Use IJ's command Image→Adjust→Canvas Size... and press <i>Reload</i> in the Data Source widget of the Options pane</li>" );
2101+ sb .append ("<li>Close the current image and create a Display Canvas using <i>Create Canvas</i> in the Options pane</li>" );
2102+ }
2103+ else {
2104+ sb .append ("<li>Use the <i>Create/Resize Canvas</i> commands in the Options pane</li>" );
2105+ }
2106+ sb .append ("<li>Replace the current " ).append (type ).append (" using File→Choose Tracing Image...</li>" );
2107+ return sb .toString ();
2108+ }
2109+
21022110 private void updateSinglePaneFlag () {
21032111 if (plugin .getImagePlus (MultiDThreePanes .XZ_PLANE ) == null
21042112 && plugin .getImagePlus (MultiDThreePanes .ZY_PLANE ) == null )
0 commit comments