Skip to content

Commit

Permalink
Remove other final modifier from all scijava Parameters
Browse files Browse the repository at this point in the history
The IntelliJ code inspector suggested a lot of final variables. The presence of these breaks commands in some cases.
  • Loading branch information
karlduderstadt committed May 31, 2023
1 parent 956a99f commit 7cdd8c2
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,19 @@ public class TransformROIsCommand extends DynamicCommand implements Command,
* INPUT SETTINGS
*/
@Parameter(visibility = ItemVisibility.MESSAGE, style = "groupLabel")
private final String inputGroup = "Input";
private String inputGroup = "Input";

@Parameter(visibility = ItemVisibility.MESSAGE, style = "image, group:Input",
persist = false)
private final String inputFigure = "TransformROIsInput.png";
private String inputFigure = "TransformROIsInput.png";

@Parameter(visibility = ItemVisibility.MESSAGE,
style = "group:Input, align:center", persist = false)
private final String imageName = "name";
private String imageName = "name";

@Parameter(visibility = ItemVisibility.MESSAGE,
style = "group:Input, align:left", persist = false)
private final String affineTitle = "Affine2D Transformation Matrix";
private String affineTitle = "Affine2D Transformation Matrix";

@Parameter(label = "m00", style = "format:#####.#####, group:Input")
private double m00;
Expand All @@ -174,7 +174,7 @@ public class TransformROIsCommand extends DynamicCommand implements Command,
* COLOCALIZE SETTINGS
*/
@Parameter(visibility = ItemVisibility.MESSAGE, style = "groupLabel")
private final String colocalizeGroup = "Colocalize";
private String colocalizeGroup = "Colocalize";

@Parameter(label = "Colocalize", style = "group:Colocalize")
private boolean colocalize = false;
Expand Down Expand Up @@ -205,29 +205,29 @@ public class TransformROIsCommand extends DynamicCommand implements Command,
* OUTPUT SETTINGS
*/
@Parameter(visibility = ItemVisibility.MESSAGE, style = "groupLabel")
private final String outputGroup = "Output";
private String outputGroup = "Output";

@Parameter(visibility = ItemVisibility.MESSAGE, style = "image, group:Output",
persist = false)
private final String outputFigure = "TransformROIsOutput.png";
private String outputFigure = "TransformROIsOutput.png";

/**
* PREVIEW SETTINGS
*/

@Parameter(visibility = ItemVisibility.MESSAGE, style = "groupLabel")
private final String previewGroup = "Preview";
private String previewGroup = "Preview";

@Parameter(visibility = ItemVisibility.INVISIBLE, persist = false,
callback = "previewChanged", style = "group:Preview")
private final boolean preview = false;
private boolean preview = false;

@Parameter(label = "T", min = "0", style = NumberWidget.SCROLL_BAR_STYLE +
", group:Preview", persist = false)
private int theT;

@Parameter(label = "Preview timeout (s)", style = "group:Preview")
private final int previewTimeout = 10;
private int previewTimeout = 10;

private Dataset dataset;
private ImagePlus image;
Expand Down

0 comments on commit 7cdd8c2

Please sign in to comment.