Ignore:
Timestamp:
2017-11-11T22:11:36+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #11217, fix #12623 - major rework of notes tooltips:

  • display clickable links
  • allow to copy text from notes, including comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java

    r11366 r13111  
    1515import javax.swing.SwingConstants;
    1616import javax.swing.SwingUtilities;
    17 import javax.swing.event.HyperlinkEvent.EventType;
    1817
    1918import org.openstreetmap.josm.gui.widgets.HtmlPanel;
    2019import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel;
    2120import org.openstreetmap.josm.plugins.PluginInformation;
    22 import org.openstreetmap.josm.tools.OpenBrowser;
    2321
    2422/**
     
    157155            HtmlPanel description = new HtmlPanel();
    158156            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();
    164158            lblPlugin.setLabelFor(description);
    165159
Note: See TracChangeset for help on using the changeset viewer.