File tree Expand file tree Collapse file tree
src/main/java/com/openfin/desktop/demo Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
2- <modelVersion >4.0.0</modelVersion >
3- <groupId >co.openfin</groupId >
4- <artifactId >openfin-java-example</artifactId >
5- <version >1.0-SNAPSHOT</version >
1+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
2+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
5+ <groupId >co.openfin</groupId >
6+ <artifactId >openfin-java-example</artifactId >
7+ <version >1.0-SNAPSHOT</version >
68 <properties >
79 <
user .name>
[email protected] </
user .name>
810 <maven .compiler.release>11</maven .compiler.release>
Original file line number Diff line number Diff line change 2424import com .openfin .desktop .bean .Identity ;
2525import com .openfin .desktop .bean .RuntimeConfig ;
2626import com .openfin .desktop .bean .WindowOptions ;
27+ import com .sun .jna .Platform ;
2728
2829public class EmbeddedWindowDemo implements FinRuntimeConnectionListener {
2930
@@ -136,8 +137,13 @@ public void onClose(String reason) {
136137 }
137138
138139 public static void main (String [] args ) {
139- SwingUtilities .invokeLater (()->{
140- new EmbeddedWindowDemo ();
141- });
140+ if (Platform .isWindows ()) {
141+ SwingUtilities .invokeLater (()->{
142+ new EmbeddedWindowDemo ();
143+ });
144+ }
145+ else {
146+ System .out .println ("OpenFin Embedded NOT supported on this platform." );
147+ }
142148 }
143149}
You can’t perform that action at this time.
0 commit comments