Changeset 8503 in josm for trunk/src/org
- Timestamp:
- 2015-06-19T22:44:25+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/NoteLayer.java
r8474 r8503 20 20 import javax.swing.ImageIcon; 21 21 import javax.swing.JToolTip; 22 import javax.swing.SwingUtilities; 22 23 23 24 import org.openstreetmap.josm.Main; … … 37 38 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 38 39 import org.openstreetmap.josm.io.NoteExporter; 40 import org.openstreetmap.josm.io.OsmApi; 39 41 import org.openstreetmap.josm.io.XmlWriter; 40 42 import org.openstreetmap.josm.tools.ColorHelper; 43 import org.openstreetmap.josm.tools.Utils; 41 44 import org.openstreetmap.josm.tools.date.DateUtils; 42 45 … … 224 227 @Override 225 228 public void mouseClicked(MouseEvent e) { 226 if (e.getButton() != MouseEvent.BUTTON1) { 229 if (SwingUtilities.isRightMouseButton(e) && noteData.getSelectedNote() != null) { 230 final String url = OsmApi.getOsmApi().getBaseUrl() + "notes/" + noteData.getSelectedNote().getId(); 231 Utils.copyToClipboard(url); 232 return; 233 } else if (!SwingUtilities.isLeftMouseButton(e)) { 227 234 return; 228 235 }
Note:
See TracChangeset
for help on using the changeset viewer.