Changeset 518 in josm
- Timestamp:
- 2008-01-09T20:41:15+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r486 r518 251 251 } catch (Throwable e) { 252 252 e.printStackTrace(); 253 boolean remove = true; 253 254 if (early) 254 255 System.out.println("Could not load plugin: "+info.name+" - deleted from preferences"); // do not translate 255 else 256 JOptionPane.showMessageDialog(Main.parent, tr("Could not load plugin {0}. Deleted from preferences.", info.name));257 plugins.remove(info.name);258 String plist = null;259 for (String pn : plugins) {260 if (plist==null) plist=""; else plist=plist+",";261 plist=plist+pn;256 else { 257 int answer = JOptionPane.showConfirmDialog(Main.parent, 258 tr("Could not load plugin {0}. Delete from preferences?", info.name, 259 JOptionPane.YES_NO_OPTION)); 260 if (answer != JOptionPane.OK_OPTION) { 261 remove = false; 262 } 262 263 } 263 Main.pref.put("plugins", plist); 264 if (remove) { 265 plugins.remove(info.name); 266 String plist = null; 267 for (String pn : plugins) { 268 if (plist==null) plist=""; else plist=plist+","; 269 plist=plist+pn; 270 } 271 Main.pref.put("plugins", plist); 272 } 264 273 } 265 274 }
Note:
See TracChangeset
for help on using the changeset viewer.