Changeset 35620 in osm for applications/editors/josm


Ignore:
Timestamp:
2020-10-26T09:32:09+01:00 (4 years ago)
Author:
simon04
Message:

EditLevel0LAction: show notifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/comfort0/src/net/simon04/comfort0/EditLevel0LAction.java

    r35585 r35620  
    22
    33import static org.openstreetmap.josm.tools.I18n.tr;
     4import static org.openstreetmap.josm.tools.I18n.trn;
    45
    56import java.awt.event.ActionEvent;
     
    2728import org.openstreetmap.josm.data.osm.WayData;
    2829import org.openstreetmap.josm.gui.MainApplication;
     30import org.openstreetmap.josm.gui.Notification;
    2931import org.openstreetmap.josm.gui.util.GuiHelper;
    3032import org.openstreetmap.josm.tools.Logging;
     
    6062        final Path path = writeLevel0(dataSet);
    6163        final Process editor = new EditorLauncher(path).launch();
    62         Logging.info("Comfort0: Launching editor on file {0}", path);
     64        new Notification(tr("Comfort0: Launching editor on file {0}", path)).show();
    6365        new Thread(() -> awaitEditing(dataSet, path, editor), path.getFileName().toString()).start();
    6466    }
     
    116118        }
    117119
    118         Logging.info("Comfort0: Changing {0} primitives", commands.size());
    119120        if (commands.isEmpty()) {
    120121            return;
    121122        }
    122123        final SequenceCommand command = new SequenceCommand("Comfort0", commands);
    123         GuiHelper.runInEDT(() -> UndoRedoHandler.getInstance().add(command));
     124        GuiHelper.runInEDT(() -> {
     125            new Notification(trn(
     126                    "Comfort0: Changing {0} primitive",
     127                    "Comfort0: Changing {0} primitives", commands.size(), commands.size())).show();
     128            UndoRedoHandler.getInstance().add(command);
     129        });
    124130    }
    125131}
Note: See TracChangeset for help on using the changeset viewer.