ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [30/34] incubator-ignite git commit: # ignite-330 Fixed demo.
Date Mon, 23 Mar 2015 11:58:14 GMT
# ignite-330 Fixed demo.


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

Branch: refs/heads/ignite-556
Commit: e10fb963c90b59da62226990f068cf77d9ec79d3
Parents: 1408dcf
Author: anovikov <anovikov@gridgain.com>
Authored: Mon Mar 23 18:12:16 2015 +0700
Committer: anovikov <anovikov@gridgain.com>
Committed: Mon Mar 23 18:12:16 2015 +0700

----------------------------------------------------------------------
 examples/schema-import/bin/h2-server.sh                |  2 +-
 .../org/apache/ignite/schema/ui/SchemaImportApp.java   | 13 ++++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e10fb963/examples/schema-import/bin/h2-server.sh
----------------------------------------------------------------------
diff --git a/examples/schema-import/bin/h2-server.sh b/examples/schema-import/bin/h2-server.sh
index 6e63f2e..e714f4c 100755
--- a/examples/schema-import/bin/h2-server.sh
+++ b/examples/schema-import/bin/h2-server.sh
@@ -52,7 +52,7 @@ setIgniteHome
 osname=`uname`
 
 if [ "${DOCK_OPTS}" == "" ]; then
-    DOCK_OPTS="-Xdock:name=H2 database"
+    DOCK_OPTS="-Dapple.awt.UIElement="true""
 fi
 
 # Starts H2 server and console.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e10fb963/modules/schema-import/src/main/java/org/apache/ignite/schema/ui/SchemaImportApp.java
----------------------------------------------------------------------
diff --git a/modules/schema-import/src/main/java/org/apache/ignite/schema/ui/SchemaImportApp.java
b/modules/schema-import/src/main/java/org/apache/ignite/schema/ui/SchemaImportApp.java
index 5c6f82b..306363c 100644
--- a/modules/schema-import/src/main/java/org/apache/ignite/schema/ui/SchemaImportApp.java
+++ b/modules/schema-import/src/main/java/org/apache/ignite/schema/ui/SchemaImportApp.java
@@ -23,8 +23,12 @@ import javafx.collections.*;
 import javafx.concurrent.*;
 import javafx.event.*;
 import javafx.geometry.*;
+import javafx.geometry.Insets;
 import javafx.scene.*;
 import javafx.scene.control.*;
+import javafx.scene.control.Button;
+import javafx.scene.control.Label;
+import javafx.scene.control.TextField;
 import javafx.scene.layout.*;
 import javafx.stage.*;
 import javafx.util.*;
@@ -34,10 +38,12 @@ import org.apache.ignite.schema.generator.*;
 import org.apache.ignite.schema.model.*;
 import org.apache.ignite.schema.parser.*;
 
+import java.awt.*;
 import java.io.*;
 import java.net.*;
 import java.sql.*;
 import java.util.*;
+import java.util.List;
 import java.util.concurrent.*;
 import java.util.logging.*;
 
@@ -1397,11 +1403,8 @@ public class SchemaImportApp extends Application {
 
             // Ensure that window fit any available screen.
             if (!Screen.getScreensForRectangle(x, y, w, h).isEmpty()) {
-                if (x > 0)
-                    primaryStage.setX(x);
-
-                if (y > 0)
-                    primaryStage.setY(y);
+                primaryStage.setX(x);
+                primaryStage.setY(y);
 
                 primaryStage.setWidth(w);
                 primaryStage.setHeight(h);


Mime
View raw message