- Timestamp:
- 2017-11-12T15:45:08+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/NoteLayer.java
r13111 r13117 38 38 import org.openstreetmap.josm.gui.MainFrame; 39 39 import org.openstreetmap.josm.gui.MapView; 40 import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils;41 40 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 42 41 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; … … 46 45 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 47 46 import org.openstreetmap.josm.gui.widgets.HtmlPanel; 48 import org.openstreetmap.josm.io.OsmApi;49 47 import org.openstreetmap.josm.io.XmlWriter; 50 48 import org.openstreetmap.josm.spi.preferences.Config; … … 199 197 displayedWindow.pack(); 200 198 displayedWindow.setLocation(tx, ty); 201 displayedWindow.setVisible( true);199 displayedWindow.setVisible(mv.contains(p)); 202 200 displayedNote = selectedNote; 203 201 } … … 303 301 @Override 304 302 public void mouseClicked(MouseEvent e) { 305 if (SwingUtilities.isRightMouseButton(e) && noteData.getSelectedNote() != null) { 306 final String url = OsmApi.getOsmApi().getBaseUrl() + "notes/" + noteData.getSelectedNote().getId(); 307 ClipboardUtils.copyString(url); 308 return; 309 } else if (!SwingUtilities.isLeftMouseButton(e)) { 303 if (!SwingUtilities.isLeftMouseButton(e)) { 310 304 return; 311 305 }
Note:
See TracChangeset
for help on using the changeset viewer.