---------- Původní zpráva ---------- Od: Paul Hartmann <phaau...@googlemail.com> Komu: josm-dev@openstreetmap.org Datum: 15. 4. 2014 14:20:30 Předmět: Re: [josm-dev] Progress monitor not being closed
"On 14.04.2014 21:10, Toby Murray wrote: > I'm working on the notes plugin some more and have run into a problem with > ProgressMonitor. I am able to make a PleaseWaitProgressMonitor pop up on > the screen and even update the text being shown to the user. But when I > call finishTask the dialog does not close. > Any tips as to what could be going on here? Apparently, finishTask() doesn't do much in PleaseWaitProgressMonitor. You can call close() to make the dialog disappear. PleaseWaitProgressMonitor is actually a helper class for PleaseWaitRunnable; in most cases you it is better to use PleaseWaitRunnable directly. " There is no close() method on PleaseWaitRunnable class. Did I miss something? [javac] /home/marian/data/josm/josm_plugins/plugins/pointInfo/src/org/ openstreetmap/josm/plugins/pointinfo/PointInfoAction.java:110: error: cannot find symbol [javac] infoTask.close(); [javac] ^ [javac] symbol: method close() [javac] location: variable infoTask of type PleaseWaitRunnable [javac] 1 error [javac] 1 warning final PleaseWaitRunnable infoTask = new PleaseWaitRunnable(tr( "Connecting server")) { @Override protected void realRun() throws SAXException { infoSync(pos, progressMonitor.createSubTaskMonitor (ProgressMonitor.ALL_TICKS, false)); } @Override protected void finish() { infoTask.close(); Marián " Paul _______________________________________________ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev" _______________________________________________ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev