From 9fcb4946524ebd1c82f784267c7c7bb3d4bc7a8d Mon Sep 17 00:00:00 2001 From: Christian Tischer Date: Tue, 5 Mar 2024 17:15:02 +0100 Subject: [PATCH] Add description to OpenHCSDatasetCommand --- .../embl/mobie/command/open/OpenHCSDatasetCommand.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/embl/mobie/command/open/OpenHCSDatasetCommand.java b/src/main/java/org/embl/mobie/command/open/OpenHCSDatasetCommand.java index 8b81bbfc9..88a0a771d 100644 --- a/src/main/java/org/embl/mobie/command/open/OpenHCSDatasetCommand.java +++ b/src/main/java/org/embl/mobie/command/open/OpenHCSDatasetCommand.java @@ -42,6 +42,8 @@ import java.io.File; import java.io.IOException; +import static org.embl.mobie.command.open.OpenHCSDatasetCommand.VoxelDimensionFetching.FromOMEXML; + @Plugin(type = Command.class, menuPath = CommandConstants.MOBIE_PLUGIN_OPEN + "Open HCS Dataset..." ) public class OpenHCSDatasetCommand implements Command @@ -69,7 +71,10 @@ public enum VoxelDimensionFetching @Parameter ( label = "Voxel Dimensions" ) public VoxelDimensionFetching voxelDimensionFetching = VoxelDimensionFetching.FromImageFiles; - @Parameter ( label = "OME-XML (optional)", required = false ) + @Parameter ( label = "OME-XML (optional)", + description = "This is used if the option FromOMEXML is chosen to for" + + " determining the Voxel Dimensions", + persist = false ) public File omeXML; @Override @@ -89,7 +94,7 @@ public void run() private VoxelDimensions initVoxelDimensions() { - if ( voxelDimensionFetching.equals( VoxelDimensionFetching.FromOMEXML ) ) + if ( voxelDimensionFetching.equals( FromOMEXML ) ) { return OMEXMLParser.readVoxelDimensions( omeXML ); }