Changeset 8685 in josm for trunk/src/org/openstreetmap/josm
- Timestamp:
- 2015-08-23T00:22:55+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OverpassDownloadAction.java
r8684 r8685 13 13 import java.util.concurrent.Future; 14 14 15 import javax.swing.*; 15 import javax.swing.AbstractAction; 16 import javax.swing.JButton; 17 import javax.swing.JLabel; 18 import javax.swing.JOptionPane; 19 import javax.swing.JPanel; 20 import javax.swing.JScrollPane; 21 import javax.swing.JTextArea; 16 22 17 23 import org.openstreetmap.josm.Main; … … 32 38 import org.openstreetmap.josm.tools.Utils; 33 39 40 /** 41 * Download map data from Overpass API server. 42 * @since 8684 43 */ 34 44 public class OverpassDownloadAction extends JosmAction { 35 45 46 /** 47 * Constructs a new {@code OverpassDownloadAction}. 48 */ 36 49 public OverpassDownloadAction() { 37 50 super(tr("Download from Overpass API ..."), "download-overpass", tr("Download map data from Overpass API server."), … … 56 69 } 57 70 58 static class OverpassDownloadDialog extends DownloadDialog {71 static final class OverpassDownloadDialog extends DownloadDialog { 59 72 60 73 protected HistoryComboBox overpassWizard; … … 72 85 } 73 86 74 static public OverpassDownloadDialog getInstance() {87 public static OverpassDownloadDialog getInstance() { 75 88 if (instance == null) { 76 89 instance = new OverpassDownloadDialog(Main.parent); -
trunk/src/org/openstreetmap/josm/actions/OverpassTurboQueryWizard.java
r8684 r8685 2 2 package org.openstreetmap.josm.actions; 3 3 4 import javax.script.Invocable;5 import javax.script.ScriptEngine;6 import javax.script.ScriptEngineManager;7 import javax.script.ScriptException;8 4 import java.io.IOException; 9 5 import java.io.InputStreamReader; … … 12 8 import java.util.regex.Pattern; 13 9 10 import javax.script.Invocable; 11 import javax.script.ScriptEngine; 12 import javax.script.ScriptEngineManager; 13 import javax.script.ScriptException; 14 14 15 /** 15 16 * Uses <a href="https://github.com/tyrasd/overpass-turbo/">Overpass Turbo</a> query wizard code … … 17 18 * 18 19 * Requires a JavaScript {@link ScriptEngine}. 20 * @since 8684 19 21 */ 20 public class OverpassTurboQueryWizard {22 public final class OverpassTurboQueryWizard { 21 23 22 24 private static OverpassTurboQueryWizard instance;
Note:
See TracChangeset
for help on using the changeset viewer.