@@ -96,7 +96,6 @@ public class SNTUI extends JDialog {
9696 protected JSpinner snapWindowZsizeSpinner ;
9797 private JButton showOrHidePathList ;
9898 private JButton showOrHideFillList = new JButton (); // must be initialized
99- private JMenuItem saveMenuItem ;
10099 private JMenuItem quitMenuItem ;
101100 private JLabel statusText ;
102101 private JLabel statusBarText ;
@@ -109,7 +108,6 @@ public class SNTUI extends JDialog {
109108 private JSpinner assignDiameterSpinner ;
110109 private JCheckBox confirmTemporarySegmentsCheckbox ;
111110 private JRadioButtonMenuItem standardTracingRbmi ;
112- private JRadioButtonMenuItem rubberBandTracingRbmi ;
113111
114112 // UI controls for auto-tracing
115113 private JComboBox <String > searchAlgoChoice ;
@@ -914,7 +912,6 @@ protected void disableImageDependentComponents() {
914912 private void disableEverything () {
915913 assert SwingUtilities .isEventDispatchThread ();
916914 disableImageDependentComponents ();
917- saveMenuItem .setEnabled (false );
918915 quitMenuItem .setEnabled (false );
919916 }
920917
@@ -1024,7 +1021,6 @@ public void enter() {
10241021 partsNearbyCSpinner .setEnabled (isStackAvailable ());
10251022 setEnableAutoTracingComponents (plugin .isAstarEnabled (), true );
10261023 fmUI .setEnabledWhileNotFilling ();
1027- saveMenuItem .setEnabled (true );
10281024 quitMenuItem .setEnabled (true );
10291025 showPathsSelected .setEnabled (true );
10301026 updateStatusText ("Click somewhere to start a new path..." );
@@ -1049,7 +1045,6 @@ public void enter() {
10491045 setEnableAutoTracingComponents (false , false );
10501046 plugin .discardFill ();
10511047 fmUI .setEnabledWhileNotFilling ();
1052- saveMenuItem .setEnabled (true );
10531048 quitMenuItem .setEnabled (true );
10541049 showPathsSelected .setEnabled (true );
10551050 updateRebuildCanvasButton ();
@@ -2914,7 +2909,7 @@ private JMenu fileMenu(final ScriptInstaller installer) {
29142909
29152910 // Save
29162911 fileMenu .addSeparator ();
2917- saveMenuItem = new JMenuItem ("Save Tracings" , IconFactory .menuIcon (IconFactory .GLYPH .SAVE ));
2912+ final JMenuItem saveMenuItem = new JMenuItem ("Save Tracings" , IconFactory .menuIcon (IconFactory .GLYPH .SAVE ));
29182913 saveMenuItem .setToolTipText ("Saves tracings to a TRACES (XML) file. "
29192914 + "This file may be gzip compressed as per options in the Preferences dialog." );
29202915 saveMenuItem .setAccelerator (
@@ -3293,7 +3288,7 @@ private JMenu viewMenu() {
32933288 // Calculate usable area (excluding taskbar, dock, etc.)
32943289 final int usableX = screenBounds .x + insets .left ;
32953290 final int usableY = screenBounds .y + insets .top ;
3296- final int usableWidth = screenBounds .width - insets .left - insets .right ;
3291+ // final int usableWidth = screenBounds.width - insets.left - insets.right;
32973292 final int usableHeight = screenBounds .height - insets .top - insets .bottom ;
32983293
32993294 // Position dialogs on the same screen
@@ -3863,7 +3858,7 @@ public void itemStateChanged(final ItemEvent e) {
38633858 optionsMenu .add (GuiUtils .leftAlignedLabel ("Tracing Mode:" , false ));
38643859 final ButtonGroup tracingModeButtonGroup = new ButtonGroup ();
38653860 standardTracingRbmi = new JRadioButtonMenuItem ("Standard" , !plugin .rubberBandTracing );
3866- rubberBandTracingRbmi = new JRadioButtonMenuItem ("Live Preview" , plugin .rubberBandTracing );
3861+ final JRadioButtonMenuItem rubberBandTracingRbmi = new JRadioButtonMenuItem ("Live Preview" , plugin .rubberBandTracing );
38673862 GuiUtils .addTooltip (rubberBandTracingRbmi , "<html>Continuously previews the path to the cursor position as you move the mouse.<br>"
38683863 + "Click to confirm each segment. Only recommended for 2D images." );
38693864 tracingModeButtonGroup .add (standardTracingRbmi );
@@ -3898,7 +3893,7 @@ public void itemStateChanged(final ItemEvent e) {
38983893 });
38993894 optionsMenu .addSeparator ();
39003895 optionsMenu .add (GuiUtils .MenuItems .openHelpURL ("Help on Algorithm Settings" ,
3901- "https://imagej.net/plugins/snt/manual#auto-tracing " ));
3896+ "https://imagej.net/plugins/snt/manual#algorithm-settings " ));
39023897 aStarPanel = new JPanel (new BorderLayout ());
39033898 aStarPanel .add (checkboxPanel , BorderLayout .CENTER );
39043899 aStarPanel .add (optionsButton , BorderLayout .EAST );
0 commit comments