Changeset 27492 in osm for applications/editors/josm/plugins/infomode/src
- Timestamp:
- 2012-01-19T19:25:09+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoMode.java
r26605 r27492 29 29 import java.util.HashSet; 30 30 import java.util.Set; 31 import javax.swing.JOptionPane;32 31 import javax.swing.Popup; 33 32 import javax.swing.PopupFactory; … … 38 37 import org.openstreetmap.josm.data.gpx.GpxTrack; 39 38 import org.openstreetmap.josm.data.gpx.GpxTrackSegment; 40 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil;41 39 import org.openstreetmap.josm.gui.MapFrame; 42 40 import org.openstreetmap.josm.gui.MapView; -
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java
r27426 r27492 55 55 label6.addMouseListener(new MouseListener() { 56 56 @Override 57 public void mouseClicked(MouseEvent e) { OpenBrowser.displayUrl(label6.getText()); } 57 public void mouseClicked(MouseEvent e) { 58 String s = label6.getText(); 59 OpenBrowser.displayUrl( s.substring(9, s.length()-11) ); 60 } 58 61 public void mousePressed(MouseEvent e) { } 59 62 public void mouseReleased(MouseEvent e) { } … … 120 123 label5.setText(s1); 121 124 if (trk.getAttributes().containsKey("url")) { 122 label6.setText(trk.getAttributes().get("url").toString()); 125 label6.setText(String.format("<html><u>%s</u></html>", trk.getAttributes().get("url").toString())); 123 126 } else label6.setText(null); 124 127 }
Note:
See TracChangeset
for help on using the changeset viewer.