Changeset 8713 in josm for trunk/src/org


Ignore:
Timestamp:
2015-09-01T22:04:50+02:00 (5 years ago)
Author:
simon04
Message:

see #11428 - Overpass Download: make help work

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OverpassDownloadAction.java

    r8712 r8713  
    8686
    8787        private OverpassDownloadDialog(Component parent) {
    88             super(parent);
     88            super(parent, ht("/Action/OverpassDownload"));
    8989            cbDownloadOsmData.setEnabled(false);
    9090            cbDownloadOsmData.setSelected(false);
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java

    r8510 r8713  
    209209        // -- help button
    210210        SideButton btnHelp;
    211         pnl.add(btnHelp = new SideButton(new ContextSensitiveHelpAction(ht("/Action/Download"))));
     211        pnl.add(btnHelp = new SideButton(new ContextSensitiveHelpAction(getRootPane().getClientProperty("help").toString())));
    212212        InputMapUtils.enableEnter(btnHelp);
    213213
     
    220220     */
    221221    public DownloadDialog(Component parent) {
     222        this(parent, ht("/Action/Download"));
     223    }
     224
     225    /**
     226     * Constructs a new {@code DownloadDialog}.
     227     * @param parent the parent component
     228     * @param helpTopic the help topic to assign
     229     */
     230    public DownloadDialog(Component parent, String helpTopic) {
    222231        super(JOptionPane.getFrameForComponent(parent), tr("Download"), ModalityType.DOCUMENT_MODAL);
     232        HelpUtil.setHelpContext(getRootPane(), helpTopic);
    223233        getContentPane().setLayout(new BorderLayout());
    224234        getContentPane().add(buildMainPanel(), BorderLayout.CENTER);
     
    241251            }
    242252        });
    243         HelpUtil.setHelpContext(getRootPane(), ht("/Action/Download"));
    244253        addWindowListener(new WindowEventHandler());
    245254        restoreSettings();
Note: See TracChangeset for help on using the changeset viewer.