Changeset 11260 in osm
- Timestamp:
- 2008-10-15T18:09:49+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbPlugin.java
r11161 r11260 30 30 import java.awt.event.ActionEvent; 31 31 import java.awt.event.ActionListener; 32 import java.io.IOException;33 32 import java.net.URL; 34 33 import java.util.LinkedList; … … 131 130 public void updateData() { 132 131 // determine the bounds of the currently visible area 133 Bounds bounds = bounds(); 134 132 Bounds bounds = null; 133 try { 134 bounds = bounds(); 135 } catch (Exception e) { 136 // something went wrong, probably the mapview isn't fully initialized 137 System.err.println("OpenStreetBugs: Couldn't determine bounds of currently visible rect. Cancel auto update"); 138 return; 139 } 140 135 141 try { 136 142 // download the data … … 141 147 updateGui(); 142 148 } 143 } catch ( IOException e) {149 } catch (Exception e) { 144 150 JOptionPane.showMessageDialog(Main.parent, e.getMessage()); 145 151 e.printStackTrace(); … … 180 186 toggle.addActionListener(new ActionListener() { 181 187 private boolean download = true; 182 188 183 189 public void actionPerformed(ActionEvent e) { 184 190 active = toggle.isSelected();
Note:
See TracChangeset
for help on using the changeset viewer.