- Timestamp:
- 2009-03-19T10:22:42+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r1444 r1506 33 33 import org.openstreetmap.josm.gui.MapFrame; 34 34 import org.openstreetmap.josm.gui.download.DownloadSelection; 35 import org.openstreetmap.josm.gui.ExtendedDialog; 35 import org.openstreetmap.josm.gui.ExtendedDialog; 36 36 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 37 37 import org.openstreetmap.josm.tools.GBC; … … 150 150 } catch (Throwable e) { 151 151 e.printStackTrace(); 152 153 int result = new ExtendedDialog(Main.parent, 154 tr("Disable plugin"), 152 153 int result = new ExtendedDialog(Main.parent, 154 tr("Disable plugin"), 155 155 tr("Could not load plugin {0}. Delete from preferences?", info.name), 156 new String[] {tr("Disable plugin"), tr(" Cancel")},157 new String[] {"dialogs/delete.png", "cancel.png"}).getValue(); 158 156 new String[] {tr("Disable plugin"), tr("Keep plugin")}, 157 new String[] {"dialogs/delete.png", "cancel.png"}).getValue(); 158 159 159 if(result == 1) 160 160 { … … 251 251 252 252 if (plugin != null) { 253 int answer = new ExtendedDialog(Main.parent, 254 tr("Disable plugin"), 253 int answer = new ExtendedDialog(Main.parent, 254 tr("Disable plugin"), 255 255 tr("An unexpected exception occurred that may have come from the ''{0}'' plugin.", plugin.info.name) 256 256 + "\n" … … 262 262 + "\n" 263 263 + tr("Should the plugin be disabled?"), 264 new String[] {tr("Disable plugin"), tr("Cancel")}, 265 new String[] {"dialogs/delete.png", "cancel.png"}).getValue(); 264 new String[] {tr("Disable plugin"), tr("Cancel")}, 265 new String[] {"dialogs/delete.png", "cancel.png"}).getValue(); 266 266 if (answer == 1) { 267 267 LinkedList<String> plugins = new LinkedList<String>(Arrays.asList(Main.pref.get("plugins").split(",")));
Note:
See TracChangeset
for help on using the changeset viewer.