CenterForDigitalHumanities / SpectralRTI_Toolkit

Process Spectral RTI Images in ImageJ
GNU General Public License v3.0
1 stars 0 forks source link

Mac/Linux File Picker Titles #53

Open thehabes opened 6 years ago

thehabes commented 6 years ago

'Choose a project directory' and similar window titles do not show up for file pickers on a Mac (not sure about Linux, but those windows are suspect too). It is confusing when going through the whole macro and haven chosen all the options that require you to locate something, there's nothing to tell you what needs to be located.

thehabes commented 6 years ago

http://fiji.sc/bug/1188.html

You can work around this problem by upgrading to the latest ImageJ daily build (1.50e36) and enabling the "Use JFileChooser" option. Here is an example:

setOption("JFileChooser", true); dir = getDirectory("Choose a Directory"); setOption("JFileChooser", false);

Unlike the native directory chooser, JFileChooser still has a title bar on OS X 10.11 (El Capitan).

Closing as "WONTFIX" since there is nothing we can do about this problem.

Domhnall101 commented 6 years ago

We need o add how to deal with this for MAC users to the final docs

thanneken commented 5 years ago

I think a reasonable step forward would be to write to the console in red, [Warning: Waiting for user to locate project directory] and so forth.

thehabes commented 5 years ago

not entirely sure where this stands at the moment, I will look into it.

thanneken commented 5 years ago

The biggest issue from the summer workshops is that there are many mac users and they get hopelessly lost when presented with file picker and no context. I'm not sure why the JFileChooser mentioned above option wouldn't work. It could be deferred if complicated. I think the least we can do is to use the Console or Log to report what is being asked of the user. I'm open to different ideas as to whether this is a "warning" or info, and whether it forces open the log if not already open.

thehabes commented 4 years ago

From the issue mentioned in the link it seems like if any file/directory picker is a JFileChooser instead of a DirectoryChooser, this would stop happening. It is a small code change and I can do it and test it quickly. If that doesn't work, I can implement console logs in these locations and type them in such a way it will force the console to pop up. I will give it a shot.

thehabes commented 4 years ago

Please test and confirm you see the titles now