Changeset 27691 in osm for applications/editors
- Timestamp:
- 2012-02-02T18:22:50+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/mirrored_download/src/mirrored_download
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mirrored_download/src/mirrored_download/DownloadAction2.java
r27678 r27691 28 28 public class DownloadAction2 extends JosmAction { 29 29 public DownloadAction2() { 30 super(tr("Download from OSM..."), "download", tr("Download map data from the OSM server."), 31 Shortcut.registerShortcut(" file:download", tr("File: {0}", tr("Download from OSM...")), KeyEvent.VK_D, Shortcut.GROUPS_ALT1+Shortcut.GROUP_HOTKEY), true);32 putValue("help", ht("/Action/Download")); 30 super(tr("Download from OSM mirror..."), "download", tr("Download map data from the OSM server."), 31 Shortcut.registerShortcut("mirror:download", tr("File: {0}", tr("Download from OSM mirror...")), KeyEvent.VK_D, Shortcut.GROUPS_ALT1+Shortcut.GROUP_HOTKEY), true); 32 putValue("help", ht("/Action/MirroredDownload")); 33 33 } 34 34 -
applications/editors/josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionAction.java
r27679 r27691 30 30 31 31 public void actionPerformed(ActionEvent e) { 32 UrlSelectionDialog dialog = newUrlSelectionDialog(this);32 UrlSelectionDialog dialog = UrlSelectionDialog.getInstance(); 33 33 dialog.setVisible(true); 34 34 } -
applications/editors/josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionDialog.java
r27679 r27691 69 69 private JComboBox cbSelectUrl = null; 70 70 71 public UrlSelectionDialog( UrlSelectionAction controller) {71 public UrlSelectionDialog() { 72 72 73 73 Frame frame = JOptionPane.getFrameForComponent(Main.parent); 74 jDialog = new JDialog(frame, tr(" Create Stops from GPX"), false);74 jDialog = new JDialog(frame, tr("Select OSM mirror URL"), false); 75 75 tabbedPane = new JTabbedPane(); 76 76 JPanel tabSettings = new JPanel(); … … 129 129 jDialog.setVisible(visible); 130 130 } 131 132 private static UrlSelectionDialog singleton = null; 133 134 public static UrlSelectionDialog getInstance() { 135 136 if (singleton == null) 137 singleton = new UrlSelectionDialog(); 138 139 return singleton; 140 } 131 141 }
Note:
See TracChangeset
for help on using the changeset viewer.