Add functions to code completion

Just wondering how to make visible available macro functions that do not currently show up in the code completion.

The new daily build comes with a Roi grroup attribute than can be set via the macro-language too like

Roi.getDefaultGroup()
Roi.setDefaultGroup(3)
//etc...

It would be great if they show up in the code completion !
Where am I supposed to have a look for that ?
@haesleinhuepf :wink:

1 Like

Hey @LThomas,

congrats to your addition to core ImageJ :wink: I think these ROI groups can be very helpful.

Regarding additions to the auto-complete: I would wait a little moment until the website has documentation about the new methods listed:
https://imagej.nih.gov/ij/developer/macro/functions.html

I can then sync the content for you to this file:
https://github.com/imagej/imagej-legacy/blob/master/src/main/resources/doc/ij1macro/functions.html

It’s overdue obviously anyway.

You can also do it via PR, but please note: There are some intentional differences between these two files enabling the auto-complete to parse the HTML correctly. If you use a diff-tool, they will be obvious:

Cheers,
Robert

1 Like

Hello Robert,
if you have time, can you check for the code completion for the RoiManager.selectGroup and RoiManager.setGroup functions, they are noew documented on the macro function reference documentation.
Thanks !