Changeset 98 in josm for src/org/openstreetmap/josm/actions/UploadAction.java
- Timestamp:
- 2006-04-25T00:11:38+02:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/UploadAction.java
r92 r98 43 43 //TODO: Remove this in later versions (temporary only) 44 44 if (osmDataServer.endsWith("/0.2") || osmDataServer.endsWith("/0.2/")) { 45 int answer = JOptionPane.showConfirmDialog(Main. main,45 int answer = JOptionPane.showConfirmDialog(Main.parent, 46 46 "You seem to have an outdated server entry in your preferences.\n" + 47 47 "\n" + … … 56 56 } 57 57 58 if (!Main.ma in.getMapFrame().conflictDialog.conflicts.isEmpty()) {59 JOptionPane.showMessageDialog(Main. main, "There are unresolved conflicts. You have to resolve these first.");60 Main.ma in.getMapFrame().conflictDialog.action.button.setSelected(true);61 Main.ma in.getMapFrame().conflictDialog.action.actionPerformed(null);58 if (!Main.map.conflictDialog.conflicts.isEmpty()) { 59 JOptionPane.showMessageDialog(Main.parent, "There are unresolved conflicts. You have to resolve these first."); 60 Main.map.conflictDialog.action.button.setSelected(true); 61 Main.map.conflictDialog.action.actionPerformed(null); 62 62 return; 63 63 } … … 90 90 } 91 91 @Override protected void finish() { 92 Main.main. getMapFrame().mapView.editLayer().cleanData(server.processed, !add.isEmpty());92 Main.main.editLayer().cleanData(server.processed, !add.isEmpty()); 93 93 } 94 94 @Override protected void cancel() { … … 108 108 private boolean displayUploadScreen(Collection<OsmPrimitive> add, Collection<OsmPrimitive> update, Collection<OsmPrimitive> delete) { 109 109 if (add.isEmpty() && update.isEmpty() && delete.isEmpty()) { 110 JOptionPane.showMessageDialog(Main. main, "No changes to upload.");110 JOptionPane.showMessageDialog(Main.parent, "No changes to upload."); 111 111 return false; 112 112 } … … 140 140 } 141 141 142 return JOptionPane.showConfirmDialog(Main. main, p, "Upload this changes?",142 return JOptionPane.showConfirmDialog(Main.parent, p, "Upload this changes?", 143 143 JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION; 144 144 }
Note:
See TracChangeset
for help on using the changeset viewer.
