|
From: <hu...@us...> - 2007-09-12 02:50:25
|
Revision: 514
http://cishell.svn.sourceforge.net/cishell/?rev=514&view=rev
Author: huangb
Date: 2007-09-11 19:50:23 -0700 (Tue, 11 Sep 2007)
Log Message:
-----------
Now by default File load...points to sampledata/Network directory.
Modified Paths:
--------------
trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java
Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java
===================================================================
--- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java 2007-09-11 04:02:40 UTC (rev 513)
+++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java 2007-09-12 02:50:23 UTC (rev 514)
@@ -105,13 +105,16 @@
FileDialog dialog = new FileDialog(window.getShell(), SWT.OPEN);
if (currentDir == null) {
- currentDir = new File(System.getProperty("user.dir") + File.separator + "sampledata");
+ currentDir = new File(System.getProperty("osgi.install.area").replace("file:","")
+ + "sampledata"+File.separator+"Network");
if (!currentDir.exists()) {
- currentDir = new File(System.getProperty("user.home") + File.separator + "anything");
- } else {
- currentDir = new File(System.getProperty("user.dir") + File.separator + "sampledata" + File.separator + "anything");
- }
+ currentDir = new File(System.getProperty("osgi.install.area").replace("file:","")
+ + "sampledata" +File.separator+"Network"+ File.separator + "anything");
+ }
+// else {
+// currentDir = new File(System.getProperty("user.dir") + File.separator + "sampledata" + File.separator + "anything");
+// }
}
dialog.setFilterPath(currentDir.getPath());
dialog.setText("Select a File");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|