Changeset 27492 in osm for applications
- Timestamp:
- 2012-01-19T19:25:09+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/infomode
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/infomode/build.xml
r27427 r27492 30 30 <project name="InfoMode" default="dist" basedir="."> 31 31 <!-- enter the SVN commit message --> 32 <property name="commit.message" value="InfoMode : renaming buttons"/>32 <property name="commit.message" value="InfoMode : underline link"/> 33 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 <property name="plugin.main.version" value="4 549"/>34 <property name="plugin.main.version" value="4667"/> 35 35 <!-- should not be necessary to change the following properties --> 36 36 <property name="josm" location="../../core/dist/josm-custom.jar"/> -
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.