Changeset 8736 in josm for trunk


Ignore:
Timestamp:
2015-09-08T15:57:25+02:00 (9 years ago)
Author:
simon04
Message:

see #11843 - Give all directly started threads sensible names

Location:
trunk/src/org/openstreetmap/josm
Files:
6 edited

Legend:

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

    r8666 r8736  
    9797            // execute the command in a shutdown hook, to be sure that all the
    9898            // resources have been disposed before restarting the application
    99             Runtime.getRuntime().addShutdownHook(new Thread() {
     99            Runtime.getRuntime().addShutdownHook(new Thread("josm-restarter") {
    100100                @Override
    101101                public void run() {
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r8706 r8736  
    585585                    Main.pref.put("validated.ipv6", hasv6);
    586586                }
    587             }).start();
     587            }, "IPv6-checker").start();
    588588        }
    589589    }
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r8612 r8736  
    545545            final EastNorth finalNewCenter = newCenter;
    546546
    547             new Thread() {
     547            new Thread("smooth-scroller") {
    548548                @Override
    549549                public void run() {
  • trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java

    r8540 r8736  
    157157                    doRealRun();
    158158                }
    159             }).start();
     159            }, getClass().getName()).start();
    160160        } else {
    161161            doRealRun();
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java

    r8734 r8736  
    151151        monitor.beginTask(tr("Uploading and saving modified layers ..."));
    152152        this.saveAndUploadTask = new SaveAndUploadTask(model, monitor);
    153         new Thread(saveAndUploadTask).start();
     153        new Thread(saveAndUploadTask, saveAndUploadTask.getClass().getName()).start();
    154154    }
    155155
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

    r8512 r8736  
    445445        repaint();
    446446        if (file != null) {
    447             new Thread(new LoadImageRunnable(file, orientation)).start();
     447            new Thread(new LoadImageRunnable(file, orientation), LoadImageRunnable.class.getName()).start();
    448448        }
    449449    }
Note: See TracChangeset for help on using the changeset viewer.