Ignore:
Timestamp:
2010-09-02T23:44:36+02:00 (14 years ago)
Author:
bomm
Message:

changed remotecontrol incompatibility message to not bother the user with too many technical details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java

    r22794 r22960  
    177177                        if(msg != null)
    178178                        {
    179                                 String versionMessage = tr("{0} will work but remote control is disabled.\n"
    180                                                 + "Current version of \"{1}\": {2}, internal version {3}. "
     179                                String additionalMessage = tr("{0} will work but remote control for this plugin is disabled.\n"
     180                                                + "You should update the plugins.",
     181                                                this.getClass().getSimpleName());
     182                                String versionMessage = tr("Current version of \"{1}\": {2}, internal version {3}. "
    181183                                                + "Need version {4}, internal version {5}.\n"
    182                                                 + "You should update the plugins. If this does not help report a bug for \"{0}\".",
     184                                                + "If updating the plugins does not help report a bug for \"{0}\".",
    183185                                                this.getClass().getSimpleName(),
    184186                                                REMOTECONTROL_NAME,
     
    186188                                                (remoteControlApiMajor != 0) ?
    187189                                                                ""+remoteControlApiMajor+"."+remoteControlApiMinor :
    188                                                                         "unknown",
     190                                                                        tr("unknown"),
    189191                                                                        ""+REMOTECONTROL_MIN_REVISION,
    190192                                                                        ""+REMOTECONTROL_NEED_API_MAJOR+"."+REMOTECONTROL_MIN_API_MINOR );
     
    193195                                                this.getClass().getSimpleName());
    194196
     197                                System.out.println(this.getClass().getSimpleName() + ": " +
     198                                                msg + "\n" + versionMessage);
     199
    195200                                JOptionPane.showMessageDialog(
    196201                                                Main.parent,
    197                                                 msg + "\n" + versionMessage,
     202                                                msg + "\n" + additionalMessage,
    198203                                                title,
    199204                                                JOptionPane.WARNING_MESSAGE
     
    203208
    204209                if(!remoteControlAvailable) {
    205                         System.out.println("wmsplugin: remote control not available");
     210                        System.out.println(this.getClass().getSimpleName() + ": remote control not available");
    206211                }
    207212        }
Note: See TracChangeset for help on using the changeset viewer.