Changeset 35620 in osm for applications
- Timestamp:
- 2020-10-26T09:32:09+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/comfort0/src/net/simon04/comfort0/EditLevel0LAction.java
r35585 r35620 2 2 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 import static org.openstreetmap.josm.tools.I18n.trn; 4 5 5 6 import java.awt.event.ActionEvent; … … 27 28 import org.openstreetmap.josm.data.osm.WayData; 28 29 import org.openstreetmap.josm.gui.MainApplication; 30 import org.openstreetmap.josm.gui.Notification; 29 31 import org.openstreetmap.josm.gui.util.GuiHelper; 30 32 import org.openstreetmap.josm.tools.Logging; … … 60 62 final Path path = writeLevel0(dataSet); 61 63 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(); 63 65 new Thread(() -> awaitEditing(dataSet, path, editor), path.getFileName().toString()).start(); 64 66 } … … 116 118 } 117 119 118 Logging.info("Comfort0: Changing {0} primitives", commands.size());119 120 if (commands.isEmpty()) { 120 121 return; 121 122 } 122 123 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 }); 124 130 } 125 131 }
Note:
See TracChangeset
for help on using the changeset viewer.