Changeset 18871 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
- Timestamp:
- 2023-10-16T19:03:11+02:00 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r18603 r18871 765 765 private static void prepareFileChooser(String url, AbstractFileChooser fc) { 766 766 if (Utils.isBlank(url)) return; 767 URL sourceUrl = null;767 URL sourceUrl; 768 768 try { 769 769 sourceUrl = new URL(url); … … 816 816 p.add(new JLabel(tr("URL / File:")), GBC.std().insets(15, 0, 5, 0)); 817 817 p.add(tfURL, GBC.std().insets(0, 0, 5, 5)); 818 JButton fileChooser = new JButton(new LaunchFileChooserAction()); 818 JButton fileChooser = new JButton(new LaunchFileChooserSourceTypeAction()); 819 819 fileChooser.setMargin(new Insets(0, 0, 0, 0)); 820 820 p.add(fileChooser, GBC.eol().insets(0, 0, 5, 5)); … … 848 848 } 849 849 850 class LaunchFileChooserAction extends AbstractAction { 851 LaunchFileChooserAction() { 850 class LaunchFileChooserSourceTypeAction extends AbstractAction { 851 LaunchFileChooserSourceTypeAction() { 852 852 new ImageProvider("open").getResource().attachImageIcon(this); 853 853 putValue(SHORT_DESCRIPTION, tr("Launch a file chooser to select a file")); … … 1535 1535 gc.weightx = 0.0; 1536 1536 gc.weighty = 1.0; 1537 add(new JButton(new LaunchFileChooserAction())); 1537 add(new JButton(new LaunchFileChooserEditCellAction())); 1538 1538 1539 1539 tfFileName.addFocusListener( … … 1622 1622 } 1623 1623 1624 class LaunchFileChooserAction extends AbstractAction { 1625 LaunchFileChooserAction() { 1624 class LaunchFileChooserEditCellAction extends AbstractAction { 1625 LaunchFileChooserEditCellAction() { 1626 1626 putValue(NAME, "..."); 1627 1627 putValue(SHORT_DESCRIPTION, tr("Launch a file chooser to select a file"));
Note:
See TracChangeset
for help on using the changeset viewer.