[josm-dev] Progress monitor not being closed
Paul Hartmann
phaaurlt at googlemail.com
Tue Apr 15 21:08:31 UTC 2014
On 15.04.2014 18:16, Marián Kyral wrote:
> There is no close() method on PleaseWaitRunnable class. Did I miss
> something?
I was not referring to the PleaseWaitProgressMonitor class in this
sentence, your problem is unrelated.
There are dozens of PleaseWaitRunnable usages both in JOSM core and in
the plugin repository, where it works fine. You should try to comment
out all the code in realRun() and finish(). If it works then, put it
back step by step.
One problem might be, that you are doint GUI in a worker thread. Have a
look at [1] on how to hand that code to the Event dispatch thread.
[1]
<http://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java?rev=6973#L137>
Paul
More information about the josm-dev
mailing list