Fix style

Thanks, Janais Jenkins.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij-legacy: override method introduced into 1.47q

Noticed by Daniel Hornung.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij-legacy (headless): handle radio buttons

GenericDialog gained knowledge about radio buttons in 1.47r.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij-legacy (headless): override focus methods

These would potentially access AWT methods that are no longer there
in headless mode.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij-legacy (headless): override two more methods

These would potentially cause problems in headless mode.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij-legacy (headless): safe-guard against unknown GenericDialog methods

Every once in a while, GenericDialog acquires new functionality that is --
of course -- incompatible with the headless mode. Rather than catch these
problems at the most inconvenient moment, such as in the final stages of a
paper or grant submission, let's catch them when they occur.

To that end, we introduce a unit test whose sole purpose is to figure out
whether there are methods in whatever GenericDialog version we want to use
which the LegacyGenericDialog does not account for yet.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge branch 'headless-generic-dialog'

In the wake of the quick-n-dirty fix for GenericDialog's failure to
account for a newly-introduced method that was promptly used by the
File>Import>Image Sequence... command, failing spectacularly in headless
mode, this topic branch tries to make things more robust in the future.

It does so by introducing a unit test detecting newly-introduced methods
(and fixing a few instances that would break the unit test already).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Make HeadlessCompletenessTest more robust

As pointed out by Jonette Jenkins, the test failed when Javassist-based
patching was applied in another test beforehand.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: Do not throw Errors when parsing the update sites

A recent, ill-considered change to the Fiji wiki page listing the
update sites broke the updater because parse errors would throw
uncaught Errors rather than IOExceptions.

Reported by Niko Ehrenfeuchter.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: make update site list parser even more robust

MediaWiki does not allow you to add an empty line at the end of the
page source, therefore the parser broke when we moved the comment
how to add update sites to the list to the top.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: prepare the update site list parser to a different column
order

We had a broken updater for a day due to heavy changes in the layout
of http://fiji.sc/List_of_update_sites. Partially, the changes made
sense, even if they broke the updater. By preparing the updater
for those changes, we can make those changes again, after the vast
majority will have a new version of the updater already.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge branch 'updater-hotfix'

Due to extensive layout changes in the Fiji wiki page listing the
available update sites, the updater was broken. We reverted those
changes for now, but it is much better to prepare the updater
for future breakages of the same kind, and let it continue -- ignoring
the unexpected format.

Thanks, Niko Ehrenfeuchter, for bringing this problem to our attention.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Improve display range setting

For CompositeImages when possible use actual data range info. Otherwise fall
back to our last best estimate.
Remove obsolete overlay code

If we change the way overlay duplication works in the future,
we can resurrect some of this code at that time.