Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions how-to/integrate-with-workspace/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"type": "java",
"name": "Single Instance Id",
"request": "launch",
"mainClass": "com.openfin.starter.java.Main",
"mainClass": "com.here.starter.java.Main",
"projectName": "test",
"args": "workspaceUUID=workspace-platform-starter nativeUUID=java-interop-example registerIntents"
},
{
"type": "java",
"name": "Multi Instance Id",
"request": "launch",
"mainClass": "com.openfin.starter.java.Main",
"mainClass": "com.here.starter.java.Main",
"projectName": "test",
"args": "workspaceUUID=workspace-platform-starter nativeUUID=java-interop-example/62d2b603-0b65-411e-af4e-014528af75e6 registerIntents"
},
Expand Down
2 changes: 1 addition & 1 deletion how-to/integrate-with-workspace/JavaTest.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/test/src/com/openfin/starter/java/Main.java"/>
<listEntry value="/test/src/com/here/starter/java/Main.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
Expand Down
10 changes: 5 additions & 5 deletions how-to/integrate-with-workspace/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Java-Starter
A starter repo providing examples of how to use the OpenFin Java Adapter.
This repo contains a simple Java application that uses the OpenFin Java Adapter to launch an OpenFin application.
A starter repo providing examples of how to use the HERE Java Adapter.
This repo contains a simple Java application that uses the HERE Java Adapter to launch a HERE application.

It uses maven as the build tool and the OpenFin Java Adapter is available on Maven Central.
It uses maven as the build tool and the HERE Java Adapter is available on Maven Central.
Please refer to the pom.xml file for the dependencies.

## Getting Started
1. Clone this repo
2. Install the OpenFin Java Adapter and its dependencies using `mvn install`
2. Install the HERE Java Adapter and its dependencies using `mvn install`
3. Start Java-Starter, the java starter contains the main method
4. To package into a jar you can use mvn package (or the tools provided by your IDE to execute the command).

Expand All @@ -33,5 +33,5 @@ This example supports the following command line arguments:

## Documentation

- https://developers.openfin.co/of-docs/docs/java-api
- https://resources.here.io/docs/core/adapters/java/
- https://search.maven.org/artifact/co.openfin/openfin-desktop-java-adapter
102 changes: 51 additions & 51 deletions how-to/integrate-with-workspace/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>openfin.starter.integrate.workspace</groupId>
<artifactId>openfin.starter.integrate.workspace</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>16</release>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<mainClass>com.openfin.starter.java.Main</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<snapshots />
<id>oss-sonatype</id>
<name>oss-sonatype</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>here.starter.integrate.workspace</groupId>
<artifactId>here.starter.integrate.workspace</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>16</release>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<mainClass>com.here.starter.java.Main</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<snapshots />
<id>oss-sonatype</id>
<name>oss-sonatype</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
</project>
6 changes: 3 additions & 3 deletions how-to/integrate-with-workspace/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>openfin.starter.integrate.workspace</groupId>
<artifactId>openfin.starter.integrate.workspace</artifactId>
<groupId>here.starter.integrate.workspace</groupId>
<artifactId>here.starter.integrate.workspace</artifactId>
<version>0.0.1-SNAPSHOT</version>
<repositories>
<repository>
Expand Down Expand Up @@ -99,7 +99,7 @@
<configuration>
<archive>
<manifest>
<mainClass>com.openfin.starter.java.Main</mainClass>
<mainClass>com.here.starter.java.Main</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.openfin.starter.java;
package com.here.starter.java;

import org.json.JSONArray;
import org.json.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.openfin.starter.java;
package com.here.starter.java;

public class CommandLineOptions {
private static String[] commandLineArgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.openfin.starter.java;
package com.here.starter.java;

import java.awt.Frame;
import java.lang.System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.openfin.starter.java;
package com.here.starter.java;

import com.openfin.desktop.snapshot.SnapshotSource;
import com.openfin.desktop.interop.ContextGroupInfo;
Expand Down