Changeset 8474 in josm
- Timestamp:
- 2015-06-07T14:49:33+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UploadNotesAction.java
r8419 r8474 53 53 return; 54 54 } 55 UploadNotesTask uploadTask = new UploadNotesTask(); 56 uploadTask.uploadNotes(noteData, new PleaseWaitProgressMonitor(tr("Uploading notes to server"))); 55 new UploadNotesTask().uploadNotes(noteData, new PleaseWaitProgressMonitor(tr("Uploading notes to server"))); 57 56 } 58 57 } -
trunk/src/org/openstreetmap/josm/data/osm/NoteData.java
r8473 r8474 273 273 274 274 private void dataUpdated() { 275 Main.map.noteDialog.setNotes(getSortedNotes()); 276 Main.map.mapView.repaint(); 275 if (Main.isDisplayingMapView()) { 276 Main.map.noteDialog.setNotes(getSortedNotes()); 277 Main.map.mapView.repaint(); 278 } 277 279 } 278 280 -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r8444 r8474 548 548 int numProblems = model.getNumCancel() + model.getNumFailed(); 549 549 if (numProblems == 0) return; 550 Main.warn(numProblems + " problems occured during upload/save"); 550 551 String msg = trn( 551 552 "<html>An upload and/or save operation of one layer with modifications<br>" -
trunk/src/org/openstreetmap/josm/gui/layer/NoteLayer.java
r8461 r8474 33 33 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; 34 34 import org.openstreetmap.josm.gui.dialogs.NotesDialog; 35 import org.openstreetmap.josm.gui.io.AbstractIOTask; 36 import org.openstreetmap.josm.gui.io.UploadNoteLayerTask; 37 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 35 38 import org.openstreetmap.josm.io.NoteExporter; 36 39 import org.openstreetmap.josm.io.XmlWriter; … … 39 42 40 43 /** 41 * A layer to hold Note objects 44 * A layer to hold Note objects. 45 * @since 7522 42 46 */ 43 47 public class NoteLayer extends AbstractModifiableLayer implements MouseListener { … … 246 250 247 251 @Override 248 public void mousePressed(MouseEvent e) { } 249 250 @Override 251 public void mouseReleased(MouseEvent e) { } 252 253 @Override 254 public void mouseEntered(MouseEvent e) { } 255 256 @Override 257 public void mouseExited(MouseEvent e) { } 252 public AbstractIOTask createUploadTask(ProgressMonitor monitor) { 253 return new UploadNoteLayerTask(this, monitor); 254 } 255 256 @Override 257 public void mousePressed(MouseEvent e) { 258 // Do nothing 259 } 260 261 @Override 262 public void mouseReleased(MouseEvent e) { 263 // Do nothing 264 } 265 266 @Override 267 public void mouseEntered(MouseEvent e) { 268 // Do nothing 269 } 270 271 @Override 272 public void mouseExited(MouseEvent e) { 273 // Do nothing 274 } 258 275 }
Note:
See TracChangeset
for help on using the changeset viewer.