Changeset 7597 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2014-10-04T17:54:40+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java
r7575 r7597 68 68 public Future<?> loadUrl(boolean newLayer, String url, ProgressMonitor progressMonitor) { 69 69 CheckParameterUtil.ensureParameterNotNull(url, "url"); 70 if (url.matches(PATTERN_TRACE_ID) || url.matches(PATTERN_EXTERNAL_GPX_SCRIPT) || url.matches(PATTERN_EXTERNAL_GPX_FILE)) { 70 if (url.matches(PATTERN_TRACE_ID) 71 || url.matches(PATTERN_EXTERNAL_GPX_SCRIPT) 72 || url.matches(PATTERN_EXTERNAL_GPX_FILE)) { 71 73 downloadTask = new DownloadTask(newLayer, 72 74 new OsmServerLocationReader(url), progressMonitor); … … 101 103 102 104 public DownloadTask(boolean newLayer, OsmServerReader reader, ProgressMonitor progressMonitor) { 103 super(tr("Downloading GPS data") );105 super(tr("Downloading GPS data"), progressMonitor, false); 104 106 this.reader = reader; 105 107 this.newLayer = newLayer; … … 132 134 String name = newLayerName != null ? newLayerName : tr("Downloaded GPX Data"); 133 135 134 GpxImporterData layers = GpxImporter.loadLayers(rawData, reader.isGpxParsedProperly(), name, tr("Markers from {0}", name)); 136 GpxImporterData layers = GpxImporter.loadLayers(rawData, reader.isGpxParsedProperly(), name, 137 tr("Markers from {0}", name)); 135 138 136 139 GpxLayer gpxLayer = addOrMergeLayer(layers.getGpxLayer(), findGpxMergeLayer()); -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesTask.java
r7531 r7597 72 72 73 73 public DownloadTask(OsmServerReader reader, ProgressMonitor progressMonitor) { 74 super(tr("Downloading Notes") );74 super(tr("Downloading Notes"), progressMonitor, false); 75 75 this.reader = reader; 76 76 } 77 78 77 79 78 @Override -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r6830 r7597 32 32 /** 33 33 * Create the runnable object with a given message for the user. 34 * @param title message for the user 34 35 */ 35 36 public PleaseWaitRunnable(String title) { 36 37 this(title, false); 37 38 } 39 38 40 /** 39 41 * Create the runnable object with a given message for the user. … … 65 67 } 66 68 69 /** 70 * Create the runnable object with a given message for the user 71 * 72 * @param title message for the user 73 * @param progressMonitor progress monitor 74 * @param ignoreException If true, exception will be propagated to calling code. If false then 75 * exception will be thrown directly in EDT. When this runnable is executed using executor framework 76 * then use false unless you read result of task (because exception will get lost if you don't) 77 * @throws IllegalArgumentException thrown if parent is null 78 */ 67 79 public PleaseWaitRunnable(String title, ProgressMonitor progressMonitor, boolean ignoreException) { 68 80 this.title = title; … … 175 187 protected abstract void finish(); 176 188 189 /** 190 * Relies the progress monitor. 191 * @return the progress monitor 192 */ 177 193 public ProgressMonitor getProgressMonitor() { 178 194 return progressMonitor; -
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r7596 r7597 155 155 File pluginDir = Main.pref.getPluginsDirectory(); 156 156 if (!pluginDir.exists() && !pluginDir.mkdirs()) { 157 / /lastException =new PluginDownloadException(tr("Failed to create plugin directory ''{0}''", pluginDir.toString()));157 /*lastException =*/ new PluginDownloadException(tr("Failed to create plugin directory ''{0}''", pluginDir.toString())); 158 158 failed.addAll(toUpdate); 159 159 return;
Note:
See TracChangeset
for help on using the changeset viewer.