Changeset 27492 in osm for applications


Ignore:
Timestamp:
2012-01-19T19:25:09+01:00 (13 years ago)
Author:
akks
Message:

'InfoMode : underline link'

Location:
applications/editors/josm/plugins/infomode
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/infomode/build.xml

    r27427 r27492  
    3030<project name="InfoMode" default="dist" basedir=".">
    3131    <!-- enter the SVN commit message -->
    32     <property name="commit.message" value="InfoMode : renaming buttons"/>
     32    <property name="commit.message" value="InfoMode : underline link"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    34     <property name="plugin.main.version" value="4549"/>
     34    <property name="plugin.main.version" value="4667"/>
    3535    <!-- should not be necessary to change the following properties -->
    3636    <property name="josm" location="../../core/dist/josm-custom.jar"/>
  • applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoMode.java

    r26605 r27492  
    2929import java.util.HashSet;
    3030import java.util.Set;
    31 import javax.swing.JOptionPane;
    3231import javax.swing.Popup;
    3332import javax.swing.PopupFactory;
     
    3837import org.openstreetmap.josm.data.gpx.GpxTrack;
    3938import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
    40 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil;
    4139import org.openstreetmap.josm.gui.MapFrame;
    4240import org.openstreetmap.josm.gui.MapView;
  • applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java

    r27426 r27492  
    5555        label6.addMouseListener(new MouseListener() {
    5656            @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            }
    5861            public void mousePressed(MouseEvent e) { }
    5962            public void mouseReleased(MouseEvent e) { }
     
    120123        label5.setText(s1);
    121124        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()));
    123126        } else label6.setText(null);
    124127    }
Note: See TracChangeset for help on using the changeset viewer.