Ignore:
Timestamp:
2013-09-23T16:47:50+02:00 (11 years ago)
Author:
Don-vip
Message:

Rework console output:

  • new log level "error"
  • Replace nearly all calls to system.out and system.err to Main.(error|warn|info|debug)
  • Remove some unnecessary debug output
  • Some messages are modified (removal of "Info", "Warning", "Error" from the message itself -> notable i18n impact but limited to console error messages not seen by the majority of users, so that's ok)
File:
1 edited

Legend:

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

    r6131 r6248  
    3333import org.openstreetmap.josm.tools.Shortcut;
    3434
     35/**
     36 * Delete unnecessary nodes from a way
     37 */
    3538public class SimplifyWayAction extends JosmAction {
     39   
     40    /**
     41     * Constructs a new {@code SimplifyWayAction}.
     42     */
    3643    public SimplifyWayAction() {
    3744        super(tr("Simplify Way"), "simplify", tr("Delete unnecessary nodes from a way."), Shortcut.registerShortcut("tools:simplify", tr("Tool: {0}", tr("Simplify Way")),
     
    4148
    4249    protected boolean confirmWayWithNodesOutsideBoundingBox(List<? extends OsmPrimitive> primitives) {
    43         System.out.println(primitives);
    4450        return DeleteCommand.checkAndConfirmOutlyingDelete(Main.map.mapView.getEditLayer(), primitives, null);
    4551    }
Note: See TracChangeset for help on using the changeset viewer.