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/tagging/presets/TaggingPreset.java

    r12279 r12620  
    6060import org.openstreetmap.josm.tools.GBC;
    6161import org.openstreetmap.josm.tools.ImageProvider;
     62import org.openstreetmap.josm.tools.Logging;
    6263import org.openstreetmap.josm.tools.Utils;
    6364import org.openstreetmap.josm.tools.template_engine.ParseError;
     
    217218                GuiHelper.runInEDT(() -> result.attachImageIcon(this));
    218219            } else {
    219                 Main.warn(toString() + ": " + PRESET_ICON_ERROR_MSG_PREFIX + iconName);
     220                Logging.warn(toString() + ": " + PRESET_ICON_ERROR_MSG_PREFIX + iconName);
    220221            }
    221222        });
     
    236237            this.nameTemplate = new TemplateParser(pattern).parse();
    237238        } catch (ParseError e) {
    238             Main.error("Error while parsing " + pattern + ": " + e.getMessage());
     239            Logging.error("Error while parsing " + pattern + ": " + e.getMessage());
    239240            throw new SAXException(e);
    240241        }
     
    245246            this.nameTemplateFilter = SearchCompiler.compile(filter);
    246247        } catch (SearchCompiler.ParseError e) {
    247             Main.error("Error while parsing" + filter + ": " + e.getMessage());
     248            Logging.error("Error while parsing" + filter + ": " + e.getMessage());
    248249            throw new SAXException(e);
    249250        }
Note: See TracChangeset for help on using the changeset viewer.