Changeset 34675 in osm for applications/editors/josm/plugins/opendata/src
- Timestamp:
- 2018-09-24T19:53:07+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/gui/ModulePreference.java
r34646 r34675 58 58 59 59 public class ModulePreference implements SubPreferenceSetting { 60 /*public static class Factory implements PreferenceSettingFactory {61 public PreferenceSetting createPreferenceSetting() {62 return new ModulePreference();63 }64 }*/65 60 66 61 public static String buildDownloadSummary(ModuleDownloadTask task) { … … 179 174 new ButtonSpec( 180 175 tr("OK"), 181 ImageProvider.get("ok"),176 new ImageProvider("ok"), 182 177 tr("Accept the new module sites and close the dialog"), 183 178 null /* no special help topic */ … … 185 180 new ButtonSpec( 186 181 tr("Cancel"), 187 ImageProvider.get("cancel"),182 new ImageProvider("cancel"), 188 183 tr("Close the dialog"), 189 184 null /* no special help topic */ … … 258 253 putValue(NAME, tr("Download list")); 259 254 putValue(SHORT_DESCRIPTION, tr("Download the list of available modules")); 260 putValue(SMALL_ICON, ImageProvider.get("download"));255 new ImageProvider("download").getResource().attachImageIcon(this); 261 256 } 262 257 … … 284 279 putValue(NAME, tr("Update modules")); 285 280 putValue(SHORT_DESCRIPTION, tr("Update the selected modules")); 286 putValue(SMALL_ICON, ImageProvider.get("dialogs", "refresh"));281 new ImageProvider("dialogs", "refresh").getResource().attachImageIcon(this); 287 282 } 288 283 … … 297 292 } 298 293 sb.append("</html>"); 299 HelpAwareOptionPane.showOptionDialog(294 GuiHelper.runInEDTAndWait(() -> HelpAwareOptionPane.showOptionDialog( 300 295 pnlModulePreferences, 301 296 sb.toString(), … … 303 298 !failed.isEmpty() ? JOptionPane.WARNING_MESSAGE : JOptionPane.INFORMATION_MESSAGE, 304 299 HelpUtil.ht("/Preferences/Modules") 305 ) ;300 )); 306 301 } 307 302 … … 337 332 model.refreshLocalModuleVersion(moduleDownloadTask.getDownloadedModules()); 338 333 model.clearPendingModules(moduleDownloadTask.getDownloadedModules()); 339 GuiHelper.runInEDT(new Runnable() { 340 @Override 341 public void run() { 342 pnlModulePreferences.refreshView(); 343 } 344 }); 334 GuiHelper.runInEDT(() -> pnlModulePreferences.refreshView()); 345 335 }; 346 336 … … 382 372 putValue(NAME, tr("Configure sites...")); 383 373 putValue(SHORT_DESCRIPTION, tr("Configure the list of sites where modules are downloaded from")); 384 putValue(SMALL_ICON, ImageProvider.get("dialogs", "settings"));374 new ImageProvider("dialogs", "settings").getResource().attachImageIcon(this); 385 375 } 386 376
Note:
See TracChangeset
for help on using the changeset viewer.