Changeset 13111 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/plugin
- Timestamp:
- 2017-11-11T22:11:36+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java
r11366 r13111 15 15 import javax.swing.SwingConstants; 16 16 import javax.swing.SwingUtilities; 17 import javax.swing.event.HyperlinkEvent.EventType;18 17 19 18 import org.openstreetmap.josm.gui.widgets.HtmlPanel; 20 19 import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel; 21 20 import org.openstreetmap.josm.plugins.PluginInformation; 22 import org.openstreetmap.josm.tools.OpenBrowser;23 21 24 22 /** … … 157 155 HtmlPanel description = new HtmlPanel(); 158 156 description.setText(pi.getDescriptionAsHtml()); 159 description.getEditorPane().addHyperlinkListener(e -> { 160 if (e.getEventType() == EventType.ACTIVATED) { 161 OpenBrowser.displayUrl(e.getURL().toString()); 162 } 163 }); 157 description.enableClickableHyperlinks(); 164 158 lblPlugin.setLabelFor(description); 165 159
Note:
See TracChangeset
for help on using the changeset viewer.