Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
ef519dd2
Commit
ef519dd2
authored
Apr 24, 2019
by
Eric Duminil
Browse files
RegionChooser: Small refactor
parent
3b1c6a5d
Changes
2
Show whitespace changes
Inline
Side-by-side
src/eu/simstadt/regionchooser/RegionChooserBrowser.java
View file @
ef519dd2
...
...
@@ -52,14 +52,9 @@ public class RegionChooserBrowser extends Region
public
JavaScriptFXBridge
()
{
Preferences
userPrefs
=
Preferences
.
userRoot
().
node
(
"/eu/simstadt/desktop"
);
String
repoString
=
userPrefs
.
get
(
"RECENT_REPOSITORY"
,
null
);
if
(
repoString
==
null
)
{
//TODO: Add a FileDialog? Possibly next to RegionChooserTitle
repo
=
Paths
.
get
(
"../TestRepository"
);
}
else
{
String
repoString
=
userPrefs
.
get
(
"RECENT_REPOSITORY"
,
"../TestRepository"
);
repo
=
Paths
.
get
(
repoString
);
}
}
/**
* Launches a background thread in which the hull gets extracted for every CityGML file. The hull gets sent back
...
...
src/eu/simstadt/regionchooser/RegionChooserFX.java
View file @
ef519dd2
...
...
@@ -10,8 +10,6 @@
public
class
RegionChooserFX
extends
Application
{
private
Scene
scene
;
/**
* Starting point of RegionChooser application. Either "Run as Java" from Eclipse or run
* "RegionChooser.bat/.sh/.command" from deployed SimStadt folder.
...
...
@@ -22,7 +20,7 @@ public class RegionChooserFX extends Application
@Override
public
void
start
(
Stage
stage
)
{
stage
.
setTitle
(
"RegionChooser "
+
getApplicationVersion
());
scene
=
new
Scene
(
new
RegionChooserBrowser
(),
1024
,
720
,
Color
.
web
(
"#666970"
));
Scene
scene
=
new
Scene
(
new
RegionChooserBrowser
(),
1024
,
720
,
Color
.
web
(
"#666970"
));
stage
.
setScene
(
scene
);
stage
.
show
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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