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
208b4866
Commit
208b4866
authored
Jun 01, 2015
by
duminil
Browse files
RegionChooser: Fix JavaFX thread problem.
parent
dcf31f94
Changes
1
Show whitespace changes
Inline
Side-by-side
src/eu/simstadt/nf4j/ExportJobFromJavaFXRegionChooser.java
View file @
208b4866
...
...
@@ -2,6 +2,7 @@
import
java.io.File
;
import
java.util.ArrayList
;
import
javafx.application.Platform
;
import
netscape.javascript.JSObject
;
import
com.vividsolutions.jts.geom.Coordinate
;
import
com.vividsolutions.jts.geom.Geometry
;
...
...
@@ -89,9 +90,13 @@ public void jobStatusChanged(JobStatusEvent event) {
try
{
File
file
=
job
.
getResult
();
novaFactoryOpenLayer
.
call
(
"updateStatus"
,
"DOWNLOADED AS ZIP"
);
// novaFactoryOpenLayer.call("selectSaveFile", file.toString());
// System.out.println("CityGML at " + file.getAbsolutePath());
//TODO: Call downloadFinished if FAILED
Platform
.
runLater
(
new
Runnable
()
{
@Override
public
void
run
()
{
novaFactoryOpenLayer
.
call
(
"selectSaveFile"
,
file
.
toString
());
}
});
novaFactoryOpenLayer
.
call
(
"downloadFinished"
);
}
catch
(
FailedTransmissionException
ex
)
{
ex
.
printStackTrace
();
...
...
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