Changeset 8713 in josm
- Timestamp:
- 2015-09-01T22:04:50+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OverpassDownloadAction.java
r8712 r8713 86 86 87 87 private OverpassDownloadDialog(Component parent) { 88 super(parent); 88 super(parent, ht("/Action/OverpassDownload")); 89 89 cbDownloadOsmData.setEnabled(false); 90 90 cbDownloadOsmData.setSelected(false); -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r8510 r8713 209 209 // -- help button 210 210 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()))); 212 212 InputMapUtils.enableEnter(btnHelp); 213 213 … … 220 220 */ 221 221 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) { 222 231 super(JOptionPane.getFrameForComponent(parent), tr("Download"), ModalityType.DOCUMENT_MODAL); 232 HelpUtil.setHelpContext(getRootPane(), helpTopic); 223 233 getContentPane().setLayout(new BorderLayout()); 224 234 getContentPane().add(buildMainPanel(), BorderLayout.CENTER); … … 241 251 } 242 252 }); 243 HelpUtil.setHelpContext(getRootPane(), ht("/Action/Download"));244 253 addWindowListener(new WindowEventHandler()); 245 254 restoreSettings();
Note:
See TracChangeset
for help on using the changeset viewer.