ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: # IGNITE-32 WIP: UI support for icon in Mac OS dock.
Date Tue, 30 Dec 2014 08:11:30 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-32 d580a5ce1 -> 477325dee


# IGNITE-32 WIP: UI support for icon in Mac OS dock.


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

Branch: refs/heads/ignite-32
Commit: 477325dee6ca60a26b7cccd6b791d609329e1045
Parents: d580a5c
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Tue Dec 30 15:11:36 2014 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Tue Dec 30 15:11:36 2014 +0700

----------------------------------------------------------------------
 .../java/org/apache/ignite/schema/ui/SchemaLoadApp.java     | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/477325de/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 6baf913..8579a63 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
@@ -3,7 +3,6 @@
 package org.apache.ignite.schema.ui;
 
 import javafx.application.*;
-import javafx.embed.swing.*;
 import javafx.event.*;
 import javafx.geometry.*;
 import javafx.scene.*;
@@ -22,6 +21,7 @@ import java.io.*;
 import java.sql.*;
 import java.util.*;
 
+import static javafx.embed.swing.SwingFXUtils.*;
 import static org.apache.ignite.schema.ui.Controls.*;
 
 /**
@@ -344,21 +344,22 @@ public class SchemaLoadApp extends Application {
 
         primaryStage.setTitle("Schema Load");
 
+        Image logo128 = image("ignite", 128);
+
         primaryStage.getIcons().addAll(
             image("ignite", 16),
             image("ignite", 24),
             image("ignite", 32),
             image("ignite", 48),
             image("ignite", 64),
-            image("ignite", 128));
+            logo128);
 
         try {
             Class<?> appCls = Class.forName("com.apple.eawt.Application");
 
             Object osxApp = appCls.getDeclaredMethod("getApplication").invoke(null);
 
-            appCls.getDeclaredMethod("setDockIconImage", Image.class).invoke(osxApp,
-                SwingFXUtils.fromFXImage(image("ignite", 128), null));
+            appCls.getDeclaredMethod("setDockIconImage", Image.class).invoke(osxApp, fromFXImage(logo128,
null));
         } catch (Throwable ignore) {
             // No-op.
         }


Mime
View raw message