Posted by
Joachim Wesner on
May 01, 2006; 4:17pm
URL: http://imagej.273.s1.nabble.com/Dialog-naming-restrictions-for-plugins-macros-tp3701208.html
Hi,
I recently came about one plugin programming issue that I did not yet read
see mentioned in the docs I browsed through (Sorry, if I missed some
obvious
pointers....)
It goes along this: Many plugins have dialog boxes that pop up each time
you call those manually, however this usually would preclude from using
those plugins in many macros (that repeatedly call those), because
execution would stop and the user would need to interact. However as it
seems, ImageJ has that smart capability to "remote-control" those dialog
boxes, as one can easily verify with the macro recorder. So far, so very
good!!
Nevertheless, it seems, to do this "remote controlling", the above
mechanism seems to use only the first non blank substring of the dialog
entry. Here comes the problem: When I have several entries, that start with
the same substring, I get a message "multiple entries" or similar and it
fails.
As an example, in a 2D phase unwrapping plugin I`m releasing I have several
entries
Quality mode (Selection)
Quality measure (Selection)
Quality map (Selection)
or
Show quality map (Checkbox)
Show residue map (Checkbox)
etc.
Where is this documented, also that "remote control" feature? Do I need to
rename the entries to avoid the same start of the string? Remove blanks?
Replace them by underscore? Can I use some trick to avoid all this?
Joachim
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________