IJ1Helper: allow special-case menu weighting
IJ1Helper: allow special-case menu weighting

Added a getIndex method that allows for special case logic to allow the
placement of some menu items at particular positions.

imagej/imagej-legacy,imagej/imagej-legacy,imagej/imagej-legacy,imagej/imagej-legacy