Changeset 35942 in osm for applications/editors/josm/plugins/CommandLine/src/org
- Timestamp:
- 2022-03-22T22:32:08+01:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/CommandLine.java
r35705 r35942 21 21 import java.nio.file.StandardCopyOption; 22 22 import java.util.ArrayList; 23 import java.util.Arrays;24 23 import java.util.Collection; 25 24 import java.util.List; … … 47 46 import org.openstreetmap.josm.gui.MainMenu; 48 47 import org.openstreetmap.josm.gui.MapFrame; 48 import org.openstreetmap.josm.gui.Notification; 49 49 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 50 50 import org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer; … … 52 52 import org.openstreetmap.josm.gui.layer.ImageryLayer; 53 53 import org.openstreetmap.josm.gui.layer.Layer; 54 import org.openstreetmap.josm.gui.util.GuiHelper; 54 55 import org.openstreetmap.josm.gui.widgets.DisableShortcutsOnFocusGainedTextField; 55 56 import org.openstreetmap.josm.io.GpxWriter; … … 497 498 tp.process = builder.start(); 498 499 } catch (final IOException e) { 500 final String errorText; 499 501 synchronized (debugstr) { 500 Logging.error( 501 tr("Error executing the script:") + ' ' + 502 debugstr.toString() + e.getMessage() + '\n' + Arrays.toString(e.getStackTrace())); 503 } 502 errorText = tr("Error executing the script:") + ' ' + debugstr + e.getMessage(); 503 } 504 Logging.error(errorText); 505 Logging.error(e); 506 GuiHelper.runInEDT(() -> 507 new Notification(errorText).setIcon(JOptionPane.ERROR_MESSAGE).setDuration(Notification.TIME_LONG).show() 508 ); 509 setMode(Mode.IDLE); 504 510 return; 505 511 } -
applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/LengthAction.java
r35297 r35942 152 152 drawStartPos = null; 153 153 drawing = false; 154 exitMode();154 // exitMode is called when we change to a different action. Do not call it here. 155 155 } 156 156
Note:
See TracChangeset
for help on using the changeset viewer.