Changeset 25473 in osm for applications/editors/josm
- Timestamp:
- 2011-02-28T20:07:25+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbPlugin.java
r23747 r25473 30 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 31 32 33 32 import javax.swing.ImageIcon; 34 33 import javax.swing.JOptionPane; 34 import javax.swing.SwingUtilities; 35 35 36 36 import org.openstreetmap.josm.Main; … … 161 161 162 162 public void updateData() { 163 // disable the dialog 164 try { 165 SwingUtilities.invokeAndWait(new Runnable() { 166 public void run() { 167 dialog.setEnabled(false); 168 } 169 }); 170 } catch (Exception e) { 171 e.printStackTrace(); 172 } 173 163 174 // store the current selected node 164 175 Node selectedNode = getDialog().getSelectedNode(); … … 173 184 return; 174 185 } 186 175 187 176 188 // download data for the new bounds, if the plugin is not in offline mode … … 201 213 } 202 214 215 203 216 // restore node selection 204 217 dialog.setSelectedNode(selectedNode); 218 219 // enable the dialog 220 try { 221 SwingUtilities.invokeAndWait(new Runnable() { 222 public void run() { 223 dialog.setEnabled(true); 224 } 225 }); 226 } catch (Exception e) { 227 e.printStackTrace(); 228 } 205 229 } 206 230
Note:
See TracChangeset
for help on using the changeset viewer.