[kepler-dev] [Bug 5191] GUI improvements to Save As

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Wed Jan 5 23:31:49 PST 2011


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5191

--- Comment #8 from Christopher Brooks <cxh at eecs.berkeley.edu> 2011-01-05 23:31:49 PST ---
BTW - org.kepler.gui.util.ExtensionFileFilter is very similar to
diva.gui.ExtensionFileFilter.

I cleaned up a few classes in Ptolemy so that we use
diva.gui.ExtensionFileFilter.

Note that in Java 6, there is a new class:
javax.swing.filechooser.FileNameExtensionFilter which appears
to be a good replacement for both org.kepler.gui.util.ExtensionFileFilter
and diva.gui.ExtensionFileFilter.  I added a comment about this to
both classes.  I deprecated ExtensionFileFilter in TableauFrame and
have it extending diva.gui.ExtensionFileFilter.

I'm too chicken to require Java 6 in the Ptolemy core at this time. 
We might want to compile a subset of Ptolemy under Java 1.5 at some point.

BTW - Under Mac OS X Java 1.6, it looks like JFileChooser.showSaveDialog() 
ignore the the file filter added by calling addChoosableFileFilter().  The
issue is that the files marked as acceptable are not highlighted.  One
workaround is to call JFileChooser.showDialog() instead of showSaveDialog().
However, showDialog() has slight different button labels than showSaveDialog().

-- 
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Kepler-dev mailing list