Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2009-08-30T19:07:24+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginDownloader.java
r1860 r2017 28 28 import org.openstreetmap.josm.actions.AboutAction; 29 29 import org.openstreetmap.josm.gui.ExtendedDialog; 30 import org.openstreetmap.josm.gui.OptionPaneUtil;31 30 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 32 31 import org.xml.sax.SAXException; … … 51 50 @Override protected void finish() { 52 51 if (errors.length() > 0) { 53 OptionPaneUtil.showMessageDialog(52 JOptionPane.showMessageDialog( 54 53 Main.parent, 55 54 tr("There were problems with the following plugins:\n\n {0}",errors), … … 58 57 ); 59 58 } else { 60 OptionPaneUtil.showMessageDialog(59 JOptionPane.showMessageDialog( 61 60 Main.parent, 62 61 trn("{0} Plugin successfully downloaded. Please restart JOSM.", "{0} Plugins successfully downloaded. Please restart JOSM.", count, count), -
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), -
trunk/src/org/openstreetmap/josm/plugins/PluginSelection.java
r1860 r2017 38 38 import org.openstreetmap.josm.Main; 39 39 import org.openstreetmap.josm.gui.ExtendedDialog; 40 import org.openstreetmap.josm.gui.OptionPaneUtil;41 40 import org.openstreetmap.josm.tools.OpenBrowser; 42 41 … … 50 49 int count = PluginDownloader.downloadDescription(); 51 50 if (count > 0) { 52 OptionPaneUtil.showMessageDialog(Main.parent,51 JOptionPane.showMessageDialog(Main.parent, 53 52 trn("Downloaded plugin information from {0} site", 54 53 "Downloaded plugin information from {0} sites", count, count), … … 57 56 ); 58 57 } else { 59 OptionPaneUtil.showMessageDialog(58 JOptionPane.showMessageDialog( 60 59 Main.parent, 61 60 tr("No plugin information found."), … … 90 89 } 91 90 if (toUpdate.isEmpty()) { 92 OptionPaneUtil.showMessageDialog(91 JOptionPane.showMessageDialog( 93 92 Main.parent, 94 93 tr("All installed plugins are up to date."), … … 350 349 if(err > 0) 351 350 { 352 OptionPaneUtil.showMessageDialog(351 JOptionPane.showMessageDialog( 353 352 Main.parent, 354 353 tr("Error reading plugin information file: {0}", f.getName()),
Note:
See TracChangeset
for help on using the changeset viewer.