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

Location:
trunk/src/org/openstreetmap/josm/actions/search
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java

    r12578 r12620  
    6262import org.openstreetmap.josm.tools.GBC;
    6363import org.openstreetmap.josm.tools.JosmRuntimeException;
     64import org.openstreetmap.josm.tools.Logging;
    6465import org.openstreetmap.josm.tools.Shortcut;
    6566import org.openstreetmap.josm.tools.Utils;
     
    416417                        super.buttonAction(buttonIndex, evt);
    417418                    } catch (ParseError e) {
    418                         Main.debug(e);
     419                        Logging.debug(e);
    419420                        JOptionPane.showMessageDialog(
    420421                                Main.parent,
     
    825826                subMonitor.finishTask();
    826827            } catch (ParseError e) {
    827                 Main.debug(e);
     828                Logging.debug(e);
    828829                JOptionPane.showMessageDialog(
    829830                        Main.parent,
     
    953954                    break;
    954955                } else {
    955                     Main.warn("Unknown char in SearchSettings: " + s);
     956                    Logging.warn("Unknown char in SearchSettings: " + s);
    956957                    break;
    957958                }
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r12491 r12620  
    4646import org.openstreetmap.josm.tools.AlphanumComparator;
    4747import org.openstreetmap.josm.tools.Geometry;
     48import org.openstreetmap.josm.tools.Logging;
    4849import org.openstreetmap.josm.tools.UncheckedParseException;
    4950import org.openstreetmap.josm.tools.Utils;
     
    112113                throw new AssertionError("Unknown match factory");
    113114            if (existing != null) {
    114                 Main.warn("SearchCompiler: for key ''{0}'', overriding match factory ''{1}'' with ''{2}''", keyword, existing, factory);
     115                Logging.warn("SearchCompiler: for key ''{0}'', overriding match factory ''{1}'' with ''{2}''", keyword, existing, factory);
    115116            }
    116117        }
     
    716717                }
    717718            } catch (NumberFormatException ignore) {
    718                 Main.trace(ignore);
     719                Logging.trace(ignore);
    719720            }
    720721            this.referenceNumber = v;
     
    16961697        if (!tokenizer.readIfEqual(Token.EOF))
    16971698            throw new ParseError(tr("Unexpected token: {0}", tokenizer.nextToken()));
    1698         Main.debug("Parsed search expression is {0}", m);
     1699        Logging.debug("Parsed search expression is {0}", m);
    16991700        return m;
    17001701    }
Note: See TracChangeset for help on using the changeset viewer.