imagej / imagej-legacy

ImageJ+ImageJ2 compatibility layer
https://imagej.net/libs/imagej-legacy
BSD 2-Clause "Simplified" License
16 stars 25 forks source link

Add Legacy Help SearchActionFactory #292

Closed gselzer closed 1 year ago

gselzer commented 1 year ago

It takes precedence over the default SciJava Common HelpSearchActionFactory, applying only to LegacyCommandInfos.

Note that we try our best to find the correct anchor within the ImageJ documentation, but there are some times where anchor inconsistencies prevent us from finding the anchor. The main barrier is multi-word command names, like Clear Outside or Enhance Contrast. With multi-word names, the anchor is the first word unless the first word is the name of another command - in this case, the second word is the anchor instead. This is the case for Clear Outside, whose anchor is #outside. We can't resolve the anchor unless we know about the other menu commands, making resolving these anchors infeasible.

When we can't find the right anchor, we just link to the menu page for the command.

Closes #291

hinerm commented 1 year ago

Works great. Thanks @gselzer!