ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject incubator-ignite git commit: # IGNITE-32: Set initial folder for JDBC driver.
Date Thu, 29 Jan 2015 06:39:49 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-32 61d201623 -> e17845954


# IGNITE-32: Set initial folder for JDBC driver.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e1784595
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e1784595
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e1784595

Branch: refs/heads/ignite-32
Commit: e178459544efdc5d8fac9941c4e9df2e6341e09d
Parents: 61d2016
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Thu Jan 29 13:39:50 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Thu Jan 29 13:39:50 2015 +0700

----------------------------------------------------------------------
 .../java/org/apache/ignite/schema/ui/SchemaLoadApp.java | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e1784595/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
----------------------------------------------------------------------
diff --git a/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
b/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
index 3a07d3e..3662683 100644
--- a/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
+++ b/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
@@ -616,6 +616,18 @@ public class SchemaLoadApp extends Application {
             @Override public void handle(ActionEvent evt) {
                 FileChooser fc = new FileChooser();
 
+                try {
+                    File jarFolder = new File(jdbcDrvJarTf.getText()).getParentFile();
+
+                    if (jarFolder.exists())
+                        fc.setInitialDirectory(jarFolder);
+                }
+                catch (Throwable ignored) {
+                    // No-op.
+                }
+
+                jdbcDrvJarTf.getText();
+
                 fc.getExtensionFilters().addAll(
                     new FileChooser.ExtensionFilter("JDBC Drivers (*.jar)", "*.jar"),
                     new FileChooser.ExtensionFilter("ZIP archives (*.zip)", "*.zip"));


Mime
View raw message