Ticket #596 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Recorded macros contain "open" twice

Reported by: melissa Owned by: melissa
Priority: major Milestone: bio-formats-4.3
Component: plugins Severity: minor
Keywords: Cc: ved.sharma@…
Blocked By: Blocking:

Description

If you attempt to record a macro for the Bio-Formats Importer plugin, you end up with something like:

  run("Bio-Formats Importer", "open=[/path/to/file] open=[/path/to/file] view=Hyperstack stack_order=XYCZT");

This is a bit confusing, so it would be nice to fix it up so that there is only one "open" option specified.

Change History

comment:1 Changed 9 years ago by melissa

  • Cc ved.sharma@… added

comment:2 Changed 9 years ago by melissa

  • Milestone changed from bio-formats-5.0 to bio-formats-4.3

comment:3 Changed 9 years ago by melissa

  • Status changed from new to closed
  • Resolution set to fixed

(In [7223]) Prevent the 'open' option from being recorded twice. Closes #596.

This is actually a work-around for a problem in ij.io.OpenDialog. OpenDialog forces the macro recorder to record the file path every time 'getFileName()' is called, so if you call that method more than once on an OpenDialog you will see duplicate keys in the recorded macro.

Note: See TracTickets for help on using tickets.