From: <mwl...@us...> - 2008-04-02 17:39:01
|
Revision: 752 http://cishell.svn.sourceforge.net/cishell/?rev=752&view=rev Author: mwlinnem Date: 2008-04-02 10:38:56 -0700 (Wed, 02 Apr 2008) Log Message: ----------- Added warning about differences in FileDialog behavior on different platforms. Modified Paths: -------------- branches/user_prefs/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java Modified: branches/user_prefs/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java =================================================================== --- branches/user_prefs/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java 2008-04-02 17:34:20 UTC (rev 751) +++ branches/user_prefs/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java 2008-04-02 17:38:56 UTC (rev 752) @@ -107,6 +107,13 @@ public void run (){ + //WARNING: Verified that file dialog has different behavior on different platforms. + //On linux (gtk?), providing a filterPath that doesn't end in a directory causes the FileDialog to + //default to the filterPath of the directory cishell was started from (not the directory the executable is necessarily in!) + //However, the same code works as intended on Windows. + + //This code works on Linux, but still hasn't been tested on Windows. + FileDialog dialog = new FileDialog(window.getShell(), SWT.OPEN); if (currentDir == null) { currentDir = new File(System.getProperty("osgi.install.area").replace("file:","") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |