- Timestamp:
- 2013-05-09T03:42:00+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r5889 r5948 31 31 import javax.swing.JRadioButton; 32 32 import javax.swing.text.BadLocationException; 33 import javax.swing.text.JTextComponent; 33 34 34 35 import org.openstreetmap.josm.Main; 35 36 import org.openstreetmap.josm.actions.ActionParameter; 37 import org.openstreetmap.josm.actions.ActionParameter.SearchSettingsActionParameter; 36 38 import org.openstreetmap.josm.actions.JosmAction; 37 39 import org.openstreetmap.josm.actions.ParameterizedAction; 38 import org.openstreetmap.josm.actions.ActionParameter.SearchSettingsActionParameter;39 40 import org.openstreetmap.josm.actions.search.SearchCompiler.ParseError; 40 41 import org.openstreetmap.josm.data.osm.DataSet; … … 50 51 import org.openstreetmap.josm.tools.Shortcut; 51 52 import org.openstreetmap.josm.tools.Utils; 52 import org.openstreetmap.josm.gui.widgets.JosmTextField;53 53 54 54 … … 194 194 public void mouseClicked(MouseEvent e) { 195 195 try { 196 J osmTextField tf = (JosmTextField) hcb.getEditor().getEditorComponent();196 JTextComponent tf = (JTextComponent) hcb.getEditor().getEditorComponent(); 197 197 tf.getDocument().insertString(tf.getCaretPosition(), " " + insertText, null); 198 198 } catch (BadLocationException ex) {
Note:
See TracChangeset
for help on using the changeset viewer.