Ignore:
Timestamp:
2017-08-22T22:26:32+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate all Main logging methods and introduce suitable replacements in Logging for most of them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java

    r12292 r12620  
    7272import org.openstreetmap.josm.tools.GBC;
    7373import org.openstreetmap.josm.tools.ImageProvider;
     74import org.openstreetmap.josm.tools.Logging;
    7475import org.openstreetmap.josm.tools.Shortcut;
    7576
     
    662663                    return true;
    663664                } catch (IOException | UnsupportedFlavorException e) {
    664                     Main.error(e);
     665                    Logging.error(e);
    665666                }
    666667                return false;
     
    681682                        }
    682683                    } catch (IOException | UnsupportedFlavorException e) {
    683                         Main.error(e);
     684                        Logging.error(e);
    684685                    }
    685686                    movingComponent = "";
     
    10221023                    Object tb = action.getValue("toolbar");
    10231024                    if (tb == null) {
    1024                         Main.info(tr("Toolbar action without name: {0}",
     1025                        Logging.info(tr("Toolbar action without name: {0}",
    10251026                        action.getClass().getName()));
    10261027                        continue;
    10271028                    } else if (!(tb instanceof String)) {
    10281029                        if (!(tb instanceof Boolean) || (Boolean) tb) {
    1029                             Main.info(tr("Strange toolbar value: {0}",
     1030                            Logging.info(tr("Strange toolbar value: {0}",
    10301031                            action.getClass().getName()));
    10311032                        }
     
    10351036                        Action r = actions.get(toolbar);
    10361037                        if (r != null && r != action && !toolbar.startsWith(IMAGERY_PREFIX)) {
    1037                             Main.info(tr("Toolbar action {0} overwritten: {1} gets {2}",
     1038                            Logging.info(tr("Toolbar action {0} overwritten: {1} gets {2}",
    10381039                            toolbar, r.getClass().getName(), action.getClass().getName()));
    10391040                        }
     
    10961097                    result.add(a);
    10971098                } else {
    1098                     Main.info("Could not load tool definition "+s);
     1099                    Logging.info("Could not load tool definition "+s);
    10991100                }
    11001101            }
     
    11121113        String toolbar = (String) action.getValue("toolbar");
    11131114        if (toolbar == null) {
    1114             Main.info(tr("Registered toolbar action without name: {0}",
     1115            Logging.info(tr("Registered toolbar action without name: {0}",
    11151116                action.getClass().getName()));
    11161117        } else {
    11171118            Action r = regactions.get(toolbar);
    11181119            if (r != null) {
    1119                 Main.info(tr("Registered toolbar action {0} overwritten: {1} gets {2}",
     1120                Logging.info(tr("Registered toolbar action {0} overwritten: {1} gets {2}",
    11201121                    toolbar, r.getClass().getName(), action.getClass().getName()));
    11211122            }
Note: See TracChangeset for help on using the changeset viewer.