Changeset 1690 in josm for trunk/src/org/openstreetmap/josm/io/OsmApi.java
- Timestamp:
- 23.06.2009 22:03:37 (3 years ago)
- File:
-
- 1 edited
-
trunk/src/org/openstreetmap/josm/io/OsmApi.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r1688 r1690 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.EventQueue; 6 7 import java.io.BufferedReader; 7 8 import java.io.BufferedWriter; … … 323 324 } 324 325 notifyStatusMessage(tr("Uploading...")); 326 setAutoProgressIndication(true); 325 327 326 328 String diff = duv.getDocument(); … … 330 332 } catch(Exception e) { 331 333 throw new OsmTransferException(e); 334 } finally { 335 setAutoProgressIndication(false); 332 336 } 333 337 … … 481 485 Main.pleaseWaitDlg.progress.setValue(current + delta); 482 486 } 487 488 489 protected void setAutoProgressIndication(final boolean enabled) { 490 EventQueue.invokeLater( 491 new Runnable() { 492 public void run() { 493 Main.pleaseWaitDlg.setIndeterminate(enabled); 494 } 495 } 496 ); 497 } 483 498 }
Note: See TracChangeset
for help on using the changeset viewer.
