Changeset 98 in josm for src/org/openstreetmap/josm/tools


Ignore:
Timestamp:
2006-04-25T00:11:38+02:00 (19 years ago)
Author:
imi
Message:
  • added Applet version of JOSM (unfinished)
  • fixed display bug if --no-fullscreen and --geometry was specified
Location:
src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

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

    r71 r98  
    2828        public void uncaughtException(Thread t, Throwable e) {
    2929                e.printStackTrace();
    30                 if (Main.main != null) {
     30                if (Main.parent != null) {
    3131                        Object[] options = new String[]{"Do nothing", "Report Bug"};
    32                         int answer = JOptionPane.showOptionDialog(Main.main, "An unexpected exception occoured.\n\n" +
     32                        int answer = JOptionPane.showOptionDialog(Main.parent, "An unexpected exception occoured.\n\n" +
    3333                                        "This is always a coding error. If you are running the latest\n" +
    3434                                        "version of JOSM, please consider be kind and file a bug report.",
     
    6969                                        p.add(new JScrollPane(info), GBC.eop());
    7070
    71                                         JOptionPane.showMessageDialog(Main.main, p);
     71                                        JOptionPane.showMessageDialog(Main.parent, p);
    7272                                } catch (Exception e1) {
    7373                                        e1.printStackTrace();
  • src/org/openstreetmap/josm/tools/TileCache.java

    r81 r98  
    1515import org.openstreetmap.josm.Main;
    1616import org.openstreetmap.josm.data.Bounds;
    17 import org.openstreetmap.josm.data.Preferences;
    1817import org.openstreetmap.josm.data.coor.EastNorth;
    1918import org.openstreetmap.josm.data.coor.LatLon;
     
    153152     */
    154153    public synchronized Image get(final int tileId, final int zoom) {
    155         final File cacheDir = new File(Main.pref.get("cache.directory", Preferences.getPreferencesDir()+"cache")+"/"+Main.proj.getCacheDirectoryName()+"/"+zoom);
     154        final File cacheDir = new File(Main.pref.get("cache.directory", Main.pref.getPreferencesDir()+"cache")+"/"+Main.proj.getCacheDirectoryName()+"/"+zoom);
    156155        if (!cache.containsKey(zoom)) {
    157156            HashMap<Integer, Image> map = new HashMap<Integer, Image>();
     
    189188                            map.put(tileId, loading);
    190189                            currentlyLoading.remove(tileId*256+zoom);
    191                             Main.main.repaint();
     190                            Main.map.repaint();
    192191                        } catch (Exception e) {
    193192                            e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.