Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
- Timestamp:
- 2017-08-24T00:15:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r12279 r12630 36 36 import org.openstreetmap.josm.data.notes.NoteComment; 37 37 import org.openstreetmap.josm.data.osm.NoteData; 38 import org.openstreetmap.josm.gui.MainApplication; 39 import org.openstreetmap.josm.gui.MapFrame; 38 40 import org.openstreetmap.josm.gui.NoteInputDialog; 39 41 import org.openstreetmap.josm.gui.NoteSortDialog; … … 99 101 public void mouseClicked(MouseEvent e) { 100 102 if (SwingUtilities.isLeftMouseButton(e) && e.getClickCount() == 2 && noteData != null && noteData.getSelectedNote() != null) { 101 Main .map.mapView.zoomTo(noteData.getSelectedNote().getLatLon());103 MainApplication.getMap().mapView.zoomTo(noteData.getSelectedNote().getLatLon()); 102 104 } 103 105 } … … 161 163 noteData = null; 162 164 model.clearData(); 163 if (Main.map.mapMode instanceof AddNoteAction) { 164 Main.map.selectMapMode(Main.map.mapModeSelect); 165 MapFrame map = MainApplication.getMap(); 166 if (map.mapMode instanceof AddNoteAction) { 167 map.selectMapMode(map.mapModeSelect); 165 168 } 166 169 } … … 297 300 Note note = displayList.getSelectedValue(); 298 301 if (note == null) { 299 JOptionPane.showMessageDialog(Main .map,302 JOptionPane.showMessageDialog(MainApplication.getMap(), 300 303 "You must select a note first", 301 304 "No note selected", … … 355 358 Main.getLayerManager().addLayer(new NoteLayer()); 356 359 } 357 Main .map.selectMapMode(new AddNoteAction(noteData));360 MainApplication.getMap().selectMapMode(new AddNoteAction(noteData)); 358 361 } 359 362 }
Note:
See TracChangeset
for help on using the changeset viewer.