Changeset 6032 in josm for trunk/src/org/openstreetmap/josm
- Timestamp:
- 2013-06-26T21:44:13+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r6031 r6032 20 20 import javax.swing.JOptionPane; 21 21 import javax.swing.JPanel; 22 import javax.swing.SwingUtilities;23 22 24 23 import org.openstreetmap.josm.Main; 25 24 import org.openstreetmap.josm.actions.downloadtasks.DownloadGpsTask; 26 25 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmChangeCompressedTask; 26 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmChangeTask; 27 27 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmCompressedTask; 28 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmChangeTask;29 28 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; 30 29 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmUrlTask; … … 32 31 import org.openstreetmap.josm.actions.downloadtasks.PostDownloadHandler; 33 32 import org.openstreetmap.josm.gui.ExtendedDialog; 33 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 34 import org.openstreetmap.josm.gui.help.HelpUtil; 34 35 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor; 35 import org.openstreetmap.josm.gui.util.GuiHelper;36 36 import org.openstreetmap.josm.gui.widgets.HistoryComboBox; 37 37 import org.openstreetmap.josm.tools.Shortcut; … … 150 150 /** 151 151 * Summarizes acceptable urls for error message purposes. 152 * @since 6030 152 * @return The HTML message to be displayed 153 * @since 6031 153 154 */ 154 155 public String findSummaryDocumentation() { … … 186 187 } else { 187 188 final String details = findSummaryDocumentation(); // Explain what patterns are supported 188 SwingUtilities.invokeLater(new Runnable() { 189 @Override 190 public void run() { 191 JOptionPane.showMessageDialog(Main.parent, tr( 192 "<html><p>Cannot open URL ''{0}''<br/>The following load tasks accept the URL patterns shown:<br/>{1}</p></html>", 193 url, details), tr("Download Location"), JOptionPane.ERROR_MESSAGE); 194 } 195 }); 189 HelpAwareOptionPane.showMessageDialogInEDT(Main.parent, tr( 190 "<html><p>Cannot open URL ''{0}''<br/>The following download tasks accept the URL patterns shown:<br/>{1}</p></html>", 191 url, details), tr("Download Location"), JOptionPane.ERROR_MESSAGE, HelpUtil.ht("/Action/OpenLocation")); 196 192 } 197 193 } 198 194 195 /** 196 * Adds a new download task to the supported ones. 197 * @param taskClass The new download task to add 198 * @return <tt>true</tt> (as specified by {@link Collection#add}) 199 */ 199 200 public boolean addDownloadTaskClass(Class<? extends DownloadTask> taskClass) { 200 201 return this.downloadTasks.add(taskClass); -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/AbstractDownloadTask.java
r6031 r6032 6 6 import org.openstreetmap.josm.io.XmlWriter; 7 7 8 /** 9 * Common abstract implementation of other download tasks 10 * @since 2322 11 */ 8 12 public abstract class AbstractDownloadTask implements DownloadTask { 9 13 private List<Object> errorMessages; -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmChangeCompressedTask.java
r6031 r6032 12 12 import org.openstreetmap.josm.io.OsmTransferException; 13 13 14 /** 15 * Task allowing to download compressed OSM-Change files (gzip and bzip2) 16 * @since 5361 17 */ 14 18 public class DownloadOsmChangeCompressedTask extends DownloadOsmChangeTask { 15 19 -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmCompressedTask.java
r6031 r6032 13 13 import org.openstreetmap.josm.io.OsmTransferException; 14 14 15 /** 16 * Task allowing to download compressed OSM files (gzip and bzip2) 17 * @since 5317 18 */ 15 19 public class DownloadOsmCompressedTask extends DownloadOsmTask { 16 20 -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmUrlTask.java
r6031 r6032 9 9 import org.openstreetmap.josm.tools.OsmUrlToBounds; 10 10 11 /** 12 * Task allowing to download an OSM url containing coordinates 13 * @since 4996 14 */ 11 15 public class DownloadOsmUrlTask extends DownloadOsmTask { 12 16 -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTask.java
r6031 r6032 80 80 81 81 /** 82 * Returns a short html documentation string, describing acceptable URLs. 82 * Returns a short HTML documentation string, describing acceptable URLs. 83 * @return The HTML documentation 84 * @since 6031 83 85 */ 84 86 String acceptsDocumentationSummary(); … … 86 88 /** 87 89 * Returns human-readable description of the task 90 * @return The task description 91 * @since 6031 88 92 */ 89 93 String getTitle(); 90 94 91 95 /** 92 * Returns regular expression that match the URLs 96 * Returns regular expressions that match the URLs 97 * @return The array of accepted URL patterns 98 * @since 6031 93 99 */ 94 100 String[] getPatterns();
Note:
See TracChangeset
for help on using the changeset viewer.