Changeset 1506 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2009-03-19T10:22:42+01:00 (15 years ago)
Author:
stoecker
Message:

close #2300 - Disable plugin dialog is confusing

File:
1 edited

Legend:

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

    r1444 r1506  
    3333import org.openstreetmap.josm.gui.MapFrame;
    3434import org.openstreetmap.josm.gui.download.DownloadSelection;
    35 import org.openstreetmap.josm.gui.ExtendedDialog; 
     35import org.openstreetmap.josm.gui.ExtendedDialog;
    3636import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
    3737import org.openstreetmap.josm.tools.GBC;
     
    150150                } catch (Throwable e) {
    151151                    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"),
    155155                        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
    159159                    if(result == 1)
    160160                    {
     
    251251
    252252        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"),
    255255                tr("An unexpected exception occurred that may have come from the ''{0}'' plugin.", plugin.info.name)
    256256                    + "\n"
     
    262262                    + "\n"
    263263                    + 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();
    266266            if (answer == 1) {
    267267                LinkedList<String> plugins = new LinkedList<String>(Arrays.asList(Main.pref.get("plugins").split(",")));
Note: See TracChangeset for help on using the changeset viewer.