Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
- Timestamp:
- 30.08.2009 19:07:24 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r1860 r2017 34 34 import org.openstreetmap.josm.gui.ExtendedDialog; 35 35 import org.openstreetmap.josm.gui.MapFrame; 36 import org.openstreetmap.josm.gui.OptionPaneUtil;37 36 import org.openstreetmap.josm.gui.download.DownloadSelection; 38 37 import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory; … … 67 66 plugins.remove(p); 68 67 Main.pref.removeFromCollection("plugins", p); 69 OptionPaneUtil.showMessageDialog(68 JOptionPane.showMessageDialog( 70 69 Main.parent, 71 70 tr("Loading of {0} plugin was requested. This plugin is no longer required.", p), … … 87 86 } 88 87 if (info.mainversion > AboutAction.getVersionNumber()) { 89 OptionPaneUtil.showMessageDialog(88 JOptionPane.showMessageDialog( 90 89 Main.parent, 91 90 tr("Plugin {0} requires JOSM update to version {1}.", pluginName, … … 106 105 if(warn != null) 107 106 { 108 OptionPaneUtil.showMessageDialog(Main.parent,107 JOptionPane.showMessageDialog(Main.parent, 109 108 tr("Plugin {0} is required by plugin {1} but was not found.", 110 109 warn, pluginName), … … 120 119 p.get(info.stage).add(info); 121 120 } else if(early) { 122 OptionPaneUtil.showMessageDialog(121 JOptionPane.showMessageDialog( 123 122 Main.parent, 124 123 tr("Plugin not found: {0}.", pluginName), … … 137 136 Main.pref.put("pluginmanager.lastupdate",Long.toString(tim)); 138 137 } else if (d > maxTime) { 139 OptionPaneUtil.showMessageDialog(Main.parent,138 JOptionPane.showMessageDialog(Main.parent, 140 139 "<html>" + 141 140 tr("Last plugin update more than {0} days ago.", d) + … … 217 216 { 218 217 if (!PluginDownloader.moveUpdatedPlugins()) { 219 OptionPaneUtil.showMessageDialog(218 JOptionPane.showMessageDialog( 220 219 Main.parent, 221 220 tr("Activating the updated plugins failed. Check if JOSM has the permission to overwrite the existing ones."), … … 297 296 while (plugins.remove(plugin.info.name)) {} 298 297 Main.pref.putCollection("plugins", plugins); 299 OptionPaneUtil.showMessageDialog(Main.parent,298 JOptionPane.showMessageDialog(Main.parent, 300 299 tr("The plugin has been removed from the configuration. Please restart JOSM to unload the plugin."), 301 300 tr("Information"), 302 301 JOptionPane.INFORMATION_MESSAGE); 303 302 } else { 304 OptionPaneUtil.showMessageDialog(303 JOptionPane.showMessageDialog( 305 304 Main.parent, 306 305 tr("The plugin could not be removed. Probably it was already disabled"), … … 345 344 a.setEditable(false); 346 345 a.setText(b.toString()); 347 OptionPaneUtil.showMessageDialog(346 JOptionPane.showMessageDialog( 348 347 Main.parent, 349 348 new JScrollPane(a),
Note: See TracChangeset
for help on using the changeset viewer.
