Commit 1abaf9af authored by kai's avatar kai
Browse files

Removed dependency to SimStadtApp (SimStadtFrontend).

parent d226b562
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry combineaccessrules="false" kind="src" path="/SimStadtRepository"/>
<classpathentry kind="lib" path="lib/jts-1.13.jar"/> <classpathentry kind="lib" path="lib/jts-1.13.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/SimStadtFrontend"/> <classpathentry combineaccessrules="false" kind="src" path="/SimStadtRepository"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
import com.vividsolutions.jts.geom.Point; import com.vividsolutions.jts.geom.Point;
import com.vividsolutions.jts.io.ParseException; import com.vividsolutions.jts.io.ParseException;
import com.vividsolutions.jts.io.WKTReader; import com.vividsolutions.jts.io.WKTReader;
import eu.simstadt.desktop.SimStadtApp;
import eu.simstadt.nf4j.ExportJobFromJavaFXRegionChooser; import eu.simstadt.nf4j.ExportJobFromJavaFXRegionChooser;
...@@ -62,14 +61,13 @@ public static void main(String[] args) { ...@@ -62,14 +61,13 @@ public static void main(String[] args) {
class Browser extends Region class Browser extends Region
{ {
public class JavaScriptFXBridge public class JavaScriptFXBridge
{ {
private Path repo; private Path repo;
private WKTReader wktReader = new WKTReader(); private WKTReader wktReader = new WKTReader();
public JavaScriptFXBridge() { public JavaScriptFXBridge() {
Preferences userPrefs = Preferences.userNodeForPackage(SimStadtApp.class); Preferences userPrefs = Preferences.userRoot().node("/eu/simstadt/desktop");
String repoString = userPrefs.get("RECENT_REPOSITORY", null); String repoString = userPrefs.get("RECENT_REPOSITORY", null);
if (repoString == null) { if (repoString == null) {
repo = Paths.get("../TestRepository"); repo = Paths.get("../TestRepository");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment