Changeset 1023 in josm for trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
- Timestamp:
- 2008-10-05T17:06:27+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
r859 r1023 17 17 import org.openstreetmap.josm.gui.download.DownloadDialog.DownloadTask; 18 18 import org.openstreetmap.josm.tools.GBC; 19 import org.openstreetmap.josm.tools.ShortCut; 19 20 20 21 /** … … 27 28 */ 28 29 public class DownloadAction extends JosmAction { 29 30 30 31 public DownloadDialog dialog; 31 32 32 33 public DownloadAction() { 33 super(tr("Download from OSM ..."), "download", tr("Download map data from the OSM server."), KeyEvent.VK_D, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK, true); 34 super(tr("Download from OSM ..."), "download", tr("Download map data from the OSM server."), 35 ShortCut.registerShortCut("file:download", tr("File: Download"), KeyEvent.VK_D, ShortCut.GROUPS_ALT1+ShortCut.GROUP_HOTKEY), true); 34 36 } 35 37 36 38 public void actionPerformed(ActionEvent e) { 37 39 dialog = new DownloadDialog(); 38 40 39 41 JPanel downPanel = new JPanel(new GridBagLayout()); 40 42 downPanel.add(dialog, GBC.eol().fill(GBC.BOTH));
Note:
See TracChangeset
for help on using the changeset viewer.
