imagej / ij1-patcher

Extension points for ImageJ via runtime patching to support (limited) headless operation and ImageJ2's legacy layer
BSD 2-Clause "Simplified" License
5 stars 6 forks source link

Only override AWT-related methods in the GenericDialog #25

Closed dscho closed 10 years ago

dscho commented 10 years ago

@PaulVanSchayck reported that a certain macro did not work for him in headless mode. The reason is that a non-AWT method was introduced into the GenericDialog, making it even harder to maintain the HeadlessGenericDialog hack than it already is, because the assumption of clean separation between graphical user interface and other logic was broken (parseDouble() is hardly specific to graphical dialogs, it desperately wanted to live in ij.util.Tools but was denied).

This PR addresses that problem.

dscho commented 10 years ago

I still need to verify that this does not break things, but unbreaks Paul's macro.