Ignore:
Timestamp:
2014-04-29T09:26:29+02:00 (11 years ago)
Author:
stoecker
Message:

fix #3142 - drop applet code finally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/OpenBrowser.java

    r6682 r7026  
    88import java.net.MalformedURLException;
    99import java.net.URI;
    10 
    11 import javax.swing.JApplet;
    1210
    1311import org.openstreetmap.josm.Main;
     
    4240    public static String displayUrl(URI uri) {
    4341        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
    5443        Main.info(tr("Opening URL: {0}", uri));
    5544
Note: See TracChangeset for help on using the changeset viewer.