Changeset 3121 in josm
- Timestamp:
- 2010-03-12T11:35:58+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r3111 r3121 34 34 import javax.swing.KeyStroke; 35 35 import javax.swing.UIManager; 36 import javax.swing.event.HyperlinkEvent; 37 import javax.swing.event.HyperlinkListener; 36 38 37 39 import org.openstreetmap.josm.Main; … … 44 46 import org.openstreetmap.josm.tools.CheckParameterUtil; 45 47 import org.openstreetmap.josm.tools.ImageProvider; 48 import org.openstreetmap.josm.tools.OpenBrowser; 46 49 import org.openstreetmap.josm.tools.WindowGeometry; 47 50 … … 111 114 pnlMessage.setText("<html><body>" 112 115 + tr("With OAuth you grant JOSM the right to upload map data and GPS tracks " 113 + "on your behalf (<a href=\" urn:josm-oauth-info\">more info...</a>).")116 + "on your behalf (<a href=\"{0}\">more info...</a>).", "http://oauth.net/") 114 117 + "</body></html>" 115 118 ); 119 pnlMessage.getEditorPane().addHyperlinkListener(new ExternalBrowserLauncher()); 116 120 pnl.add(pnlMessage, gc); 117 121 … … 248 252 pnlManualAuthorisationUI.setApiUrl(apiUrl); 249 253 } 250 251 254 } 252 255 … … 385 388 } 386 389 } 390 391 class ExternalBrowserLauncher implements HyperlinkListener { 392 public void hyperlinkUpdate(HyperlinkEvent e) { 393 if (e.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED)) { 394 String url = e.getDescription(); 395 OpenBrowser.displayUrl(url); 396 } 397 } 398 } 387 399 }
Note:
See TracChangeset
for help on using the changeset viewer.