Changeset 98 in josm for src/org/openstreetmap/josm/tools
- Timestamp:
- 2006-04-25T00:11:38+02:00 (19 years ago)
- Location:
- src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
r71 r98 28 28 public void uncaughtException(Thread t, Throwable e) { 29 29 e.printStackTrace(); 30 if (Main. main!= null) {30 if (Main.parent != null) { 31 31 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" + 33 33 "This is always a coding error. If you are running the latest\n" + 34 34 "version of JOSM, please consider be kind and file a bug report.", … … 69 69 p.add(new JScrollPane(info), GBC.eop()); 70 70 71 JOptionPane.showMessageDialog(Main. main, p);71 JOptionPane.showMessageDialog(Main.parent, p); 72 72 } catch (Exception e1) { 73 73 e1.printStackTrace(); -
src/org/openstreetmap/josm/tools/TileCache.java
r81 r98 15 15 import org.openstreetmap.josm.Main; 16 16 import org.openstreetmap.josm.data.Bounds; 17 import org.openstreetmap.josm.data.Preferences;18 17 import org.openstreetmap.josm.data.coor.EastNorth; 19 18 import org.openstreetmap.josm.data.coor.LatLon; … … 153 152 */ 154 153 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); 156 155 if (!cache.containsKey(zoom)) { 157 156 HashMap<Integer, Image> map = new HashMap<Integer, Image>(); … … 189 188 map.put(tileId, loading); 190 189 currentlyLoading.remove(tileId*256+zoom); 191 Main.ma in.repaint();190 Main.map.repaint(); 192 191 } catch (Exception e) { 193 192 e.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.