Changeset 27691 in osm for applications/editors


Ignore:
Timestamp:
2012-02-02T18:22:50+01:00 (13 years ago)
Author:
roland
Message:

Minor bugfixes.

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  
    2828public class DownloadAction2 extends JosmAction {
    2929    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"));
    3333    }
    3434
  • applications/editors/josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionAction.java

    r27679 r27691  
    3030
    3131    public void actionPerformed(ActionEvent e) {
    32         UrlSelectionDialog dialog = new UrlSelectionDialog(this);
     32        UrlSelectionDialog dialog = UrlSelectionDialog.getInstance();
    3333        dialog.setVisible(true);
    3434    }
  • applications/editors/josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionDialog.java

    r27679 r27691  
    6969  private JComboBox cbSelectUrl = null;
    7070
    71   public UrlSelectionDialog(UrlSelectionAction controller) {
     71  public UrlSelectionDialog() {
    7272
    7373    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);
    7575    tabbedPane = new JTabbedPane();
    7676    JPanel tabSettings = new JPanel();
     
    129129    jDialog.setVisible(visible);
    130130  }
     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  }
    131141}
Note: See TracChangeset for help on using the changeset viewer.