Changeset 10782 in josm
- Timestamp:
- 2016-08-11T15:38:15+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OverpassDownloadAction.java
r10629 r10782 48 48 import org.openstreetmap.josm.io.OverpassDownloadReader; 49 49 import org.openstreetmap.josm.tools.GBC; 50 import org.openstreetmap.josm.tools.InputMapUtils; 50 51 import org.openstreetmap.josm.tools.OverpassTurboQueryWizard; 51 52 import org.openstreetmap.josm.tools.Shortcut; … … 155 156 overpassWizard.getEditorComponent().addFocusListener(disableActionsFocusListener); 156 157 final JButton buildQuery = new JButton(tr("Build query")); 157 buildQuery.addActionListener(new AbstractAction() {158 final Action buildQueryAction = new AbstractAction() { 158 159 @Override 159 160 public void actionPerformed(ActionEvent e) { … … 173 174 } 174 175 } 175 }); 176 }; 177 buildQuery.addActionListener(buildQueryAction); 176 178 buildQuery.setToolTipText(tooltip); 177 179 pnl.add(buildQuery, GBC.std().insets(5, 5, 5, 5)); 178 180 pnl.add(overpassWizard, GBC.eol().fill(GBC.HORIZONTAL)); 181 InputMapUtils.addEnterAction(overpassWizard.getEditorComponent(), buildQueryAction); 179 182 180 183 overpassQuery = new JosmTextArea("", 8, 80);
Note:
See TracChangeset
for help on using the changeset viewer.