Changeset 2035 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-09-03T13:02:19+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ApiPreconditionChecker.java
r2025 r2035 15 15 import org.openstreetmap.josm.data.osm.Way; 16 16 import org.openstreetmap.josm.gui.ExceptionDialogUtil; 17 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 17 18 import org.openstreetmap.josm.io.OsmApi; 18 19 import org.openstreetmap.josm.io.OsmApiInitializationException; … … 24 25 OsmApi api = OsmApi.getOsmApi(); 25 26 try { 26 api.initialize( );27 api.initialize(NullProgressMonitor.INSTANCE); 27 28 long maxNodes = 0; 28 29 if (api.getCapabilities().isDefined("waynodes", "maximum")) { -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r2031 r2035 40 40 import org.openstreetmap.josm.io.OsmApiException; 41 41 import org.openstreetmap.josm.io.OsmApiInitializationException; 42 import org.openstreetmap.josm.io.OsmChangesetCloseException; 42 43 import org.openstreetmap.josm.io.OsmServerWriter; 43 44 import org.openstreetmap.josm.tools.GBC; … … 343 344 } 344 345 346 if (e instanceof OsmChangesetCloseException) { 347 ExceptionDialogUtil.explainOsmChangesetCloseException((OsmChangesetCloseException)e); 348 return; 349 } 345 350 if (e instanceof OsmApiException) { 346 351 OsmApiException ex = (OsmApiException)e; … … 493 498 ); 494 499 dialog.setButtonIcons(new String[] {"upload.png", "cancel.png"}); 495 dialog.setContent(p );500 dialog.setContent(p, false /* no scroll pane */); 496 501 dialog.showDialog(); 497 502 int result = dialog.getValue();
Note:
See TracChangeset
for help on using the changeset viewer.