Ignore:
Timestamp:
02.08.2009 14:36:40 (3 years ago)
Author:
Gubaer
Message:

towards a fix for #3142: JOSM applet class no longer functional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AboutAction.java

    r1802 r1879  
    5858        URL u = Main.class.getResource("/REVISION"); 
    5959        if(u == null) { 
    60             try { 
    61                 manifest = true; 
    62                 u = new URL("jar:" + Main.class.getProtectionDomain().getCodeSource().getLocation().toString() 
    63                         + "!/META-INF/MANIFEST.MF"); 
    64             } catch (MalformedURLException e) { 
    65                 e.printStackTrace(); 
    66             } 
     60            //            try { 
     61            manifest = true; 
     62            //                u = new URL("jar:" + Main.class.getProtectionDomain().getCodeSource().getLocation().toString() 
     63            //                        + "!/META-INF/MANIFEST.MF"); 
     64            u = Main.class.getResource("/META-INF/MANIFEST.MF"); 
     65            //            } catch (MalformedURLException e) { 
     66            //                e.printStackTrace(); 
     67            //            } 
    6768        } 
    6869        revision = loadFile(u, manifest); 
     
    155156 
    156157        JOptionPane.showMessageDialog(Main.parent, about, tr("About JOSM..."), 
    157         JOptionPane.INFORMATION_MESSAGE, ImageProvider.get("logo")); 
     158                JOptionPane.INFORMATION_MESSAGE, ImageProvider.get("logo")); 
    158159    } 
    159160 
     
    194195        area.setEditable(false); 
    195196        Font font = Font.getFont("monospaced"); 
    196         if (font != null) 
     197        if (font != null) { 
    197198            area.setFont(font); 
     199        } 
    198200        if (resource == null) 
    199201            return area; 
     
    202204            in = new BufferedReader(new InputStreamReader(resource.openStream())); 
    203205            String s = ""; 
    204             for (String line = in.readLine(); line != null; line = in.readLine()) 
     206            for (String line = in.readLine(); line != null; line = in.readLine()) { 
    205207                s += line + "\n"; 
     208            } 
    206209            if (manifest) { 
    207210                s = Pattern.compile("\n ", Pattern.DOTALL).matcher(s).replaceAll(""); 
Note: See TracChangeset for help on using the changeset viewer.