Skip to content

Commit 81e1a11

Browse files
committed
FIX: Create datasets are now macro-recordable
1 parent 80deb24 commit 81e1a11

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/cz/it4i/fiji/legacy/CreateNewDatasetFromJSON.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
44
import cz.it4i.fiji.rest.util.DatasetInfo;
5+
import ij.plugin.frame.Recorder;
56
import org.scijava.ItemIO;
67
import org.scijava.command.Command;
78
import org.scijava.log.LogLevel;
@@ -54,8 +55,10 @@ public void run() {
5455
newDatasetLabel = new ObjectMapper().readValue(json, DatasetInfo.class).getLabel();
5556

5657
if (showRunCmd) {
57-
myLogger.info("run(\"Create new dataset from JSON\", 'url="+this.url
58-
+ " json=" + this.json + " showruncmd=False');");
58+
final String howToRun = "run(\"Create new dataset from JSON\", 'url="+this.url
59+
+ " json=" + this.json + " showruncmd=False');";
60+
myLogger.info(howToRun);
61+
Recorder.recordString(howToRun);
5962
}
6063
mainLogger.info("Created dataset UUID: " + newDatasetUUID);
6164
} catch (MalformedURLException e) {

0 commit comments

Comments
 (0)