Ignore:
Timestamp:
30.08.2009 19:07:24 (3 years ago)
Author:
Gubaer
Message:

removed OptionPaneUtil
cleanup of deprecated Layer API
cleanup of deprecated APIs in OsmPrimitive and Way
cleanup of imports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r1860 r2017  
    3434import org.openstreetmap.josm.gui.ExtendedDialog; 
    3535import org.openstreetmap.josm.gui.MapFrame; 
    36 import org.openstreetmap.josm.gui.OptionPaneUtil; 
    3736import org.openstreetmap.josm.gui.download.DownloadSelection; 
    3837import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory; 
     
    6766                plugins.remove(p); 
    6867                Main.pref.removeFromCollection("plugins", p); 
    69                 OptionPaneUtil.showMessageDialog( 
     68                JOptionPane.showMessageDialog( 
    7069                        Main.parent, 
    7170                        tr("Loading of {0} plugin was requested. This plugin is no longer required.", p), 
     
    8786                } 
    8887                if (info.mainversion > AboutAction.getVersionNumber()) { 
    89                     OptionPaneUtil.showMessageDialog( 
     88                    JOptionPane.showMessageDialog( 
    9089                            Main.parent, 
    9190                            tr("Plugin {0} requires JOSM update to version {1}.", pluginName, 
     
    106105                    if(warn != null) 
    107106                    { 
    108                         OptionPaneUtil.showMessageDialog(Main.parent, 
     107                        JOptionPane.showMessageDialog(Main.parent, 
    109108                                tr("Plugin {0} is required by plugin {1} but was not found.", 
    110109                                        warn, pluginName), 
     
    120119                p.get(info.stage).add(info); 
    121120            } else if(early) { 
    122                 OptionPaneUtil.showMessageDialog( 
     121                JOptionPane.showMessageDialog( 
    123122                        Main.parent, 
    124123                        tr("Plugin not found: {0}.", pluginName), 
     
    137136                Main.pref.put("pluginmanager.lastupdate",Long.toString(tim)); 
    138137            } else if (d > maxTime) { 
    139                 OptionPaneUtil.showMessageDialog(Main.parent, 
     138                JOptionPane.showMessageDialog(Main.parent, 
    140139                        "<html>" + 
    141140                        tr("Last plugin update more than {0} days ago.", d) + 
     
    217216    { 
    218217        if (!PluginDownloader.moveUpdatedPlugins()) { 
    219             OptionPaneUtil.showMessageDialog( 
     218            JOptionPane.showMessageDialog( 
    220219                    Main.parent, 
    221220                    tr("Activating the updated plugins failed. Check if JOSM has the permission to overwrite the existing ones."), 
     
    297296                    while (plugins.remove(plugin.info.name)) {} 
    298297                    Main.pref.putCollection("plugins", plugins); 
    299                     OptionPaneUtil.showMessageDialog(Main.parent, 
     298                    JOptionPane.showMessageDialog(Main.parent, 
    300299                            tr("The plugin has been removed from the configuration. Please restart JOSM to unload the plugin."), 
    301300                            tr("Information"), 
    302301                            JOptionPane.INFORMATION_MESSAGE); 
    303302                } else { 
    304                     OptionPaneUtil.showMessageDialog( 
     303                    JOptionPane.showMessageDialog( 
    305304                            Main.parent, 
    306305                            tr("The plugin could not be removed. Probably it was already disabled"), 
     
    345344                    a.setEditable(false); 
    346345                    a.setText(b.toString()); 
    347                     OptionPaneUtil.showMessageDialog( 
     346                    JOptionPane.showMessageDialog( 
    348347                            Main.parent, 
    349348                            new JScrollPane(a), 
Note: See TracChangeset for help on using the changeset viewer.