Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
7d815469
Commit
7d815469
authored
10 years ago
by
duminil
Browse files
Options
Download
Email Patches
Plain Diff
RegionChooser: use chosen Repository if defined.
parent
abf9c2bd
master
develop
migrate_to_Java11
0.2.2
0.1.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.classpath
+1
-0
.classpath
src/eu/simstadt/regionchooser/RegionChooserFX.java
+12
-1
src/eu/simstadt/regionchooser/RegionChooserFX.java
with
13 additions
and
1 deletion
+13
-1
.classpath
+
1
-
0
View file @
7d815469
...
...
@@ -13,5 +13,6 @@
<classpathentry
kind=
"lib"
path=
"lib/Proj4J.jar"
/>
<classpathentry
combineaccessrules=
"false"
kind=
"src"
path=
"/SimStadtRepository"
/>
<classpathentry
kind=
"lib"
path=
"lib/jts-1.13.jar"
/>
<classpathentry
combineaccessrules=
"false"
kind=
"src"
path=
"/SimStadtFrontend"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
</classpath>
This diff is collapsed.
Click to expand it.
src/eu/simstadt/regionchooser/RegionChooserFX.java
+
12
-
1
View file @
7d815469
...
...
@@ -7,6 +7,8 @@
import
java.nio.file.Files
;
import
java.nio.file.Path
;
import
java.nio.file.Paths
;
import
java.util.Optional
;
import
java.util.prefs.Preferences
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
javafx.application.Application
;
...
...
@@ -29,6 +31,8 @@
import
com.vividsolutions.jts.geom.Point
;
import
com.vividsolutions.jts.io.ParseException
;
import
com.vividsolutions.jts.io.WKTReader
;
import
eu.simstadt.admin.RepositoryNode
;
import
eu.simstadt.desktop.SimStadtApp
;
import
eu.simstadt.nf4j.ExportJobFromJavaFXRegionChooser
;
...
...
@@ -59,7 +63,14 @@ class Browser extends Region
private
WKTReader
wktReader
=
new
WKTReader
();
public
JavaScriptFXBridge
()
{
repo
=
Paths
.
get
(
"../TestRepository"
);
Preferences
userPrefs
=
Preferences
.
userNodeForPackage
(
SimStadtApp
.
class
);
String
repoString
=
userPrefs
.
get
(
"RECENT_REPOSITORY"
,
null
);
if
(
repoString
==
null
)
{
repo
=
Paths
.
get
(
"../TestRepository"
);
}
else
{
repo
=
Paths
.
get
(
repoString
);
}
}
public
void
downloadRegion
(
String
wktPolygon
,
JSObject
nfButton
)
throws
InterruptedException
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets