Author: rozagh
Date: 2012-02-21 14:42:39 -0800 (Tue, 21 Feb 2012)
New Revision: 28328
Modified:
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/FileUtilImpl.java
Log:
fixes #610, #611 The LAST_DIRECTORY path is not updated for the UNIT/Windows
machines. The condition is changed and the path is updated to the last chosen
file's directory.
Modified:
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/FileUtilImpl.java
===================================================================
---
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/FileUtilImpl.java
2012-02-21 22:15:41 UTC (rev 28327)
+++
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/FileUtilImpl.java
2012-02-21 22:42:39 UTC (rev 28328)
@@ -176,7 +176,7 @@
// this is not a Mac, use the Swing based file dialog
final File start = new File(start_dir);
final JFileChooser chooser = new JFileChooser(start);
-
+
// set multiple selection, if applicable
chooser.setMultiSelectionEnabled(multiselect);
@@ -251,7 +251,7 @@
}
}
- if (results != null && start_dir == null)
+ if (results != null &&
chooser.getCurrentDirectory().getPath() != null)
coreProperties.setProperty(FileUtil.LAST_DIRECTORY,
chooser.getCurrentDirectory().getPath());
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.