Changeset 7026 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-04-29T09:26:29+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/OpenBrowser.java
r6682 r7026 8 8 import java.net.MalformedURLException; 9 9 import java.net.URI; 10 11 import javax.swing.JApplet;12 10 13 11 import org.openstreetmap.josm.Main; … … 42 40 public static String displayUrl(URI uri) { 43 41 CheckParameterUtil.ensureParameterNotNull(uri, "uri"); 44 if (Main.applet) { 45 try { 46 JApplet applet = (JApplet) Main.parent; 47 applet.getAppletContext().showDocument(uri.toURL()); 48 return null; 49 } catch (MalformedURLException mue) { 50 return mue.getMessage(); 51 } 52 } 53 42 54 43 Main.info(tr("Opening URL: {0}", uri)); 55 44
Note:
See TracChangeset
for help on using the changeset viewer.