Changeset 5948 in josm for trunk


Ignore:
Timestamp:
2013-05-09T03:42:00+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #8693 - CCE in Search Dialog caused by r5886

File:
1 edited

Legend:

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

    r5889 r5948  
    3131import javax.swing.JRadioButton;
    3232import javax.swing.text.BadLocationException;
     33import javax.swing.text.JTextComponent;
    3334
    3435import org.openstreetmap.josm.Main;
    3536import org.openstreetmap.josm.actions.ActionParameter;
     37import org.openstreetmap.josm.actions.ActionParameter.SearchSettingsActionParameter;
    3638import org.openstreetmap.josm.actions.JosmAction;
    3739import org.openstreetmap.josm.actions.ParameterizedAction;
    38 import org.openstreetmap.josm.actions.ActionParameter.SearchSettingsActionParameter;
    3940import org.openstreetmap.josm.actions.search.SearchCompiler.ParseError;
    4041import org.openstreetmap.josm.data.osm.DataSet;
     
    5051import org.openstreetmap.josm.tools.Shortcut;
    5152import org.openstreetmap.josm.tools.Utils;
    52 import org.openstreetmap.josm.gui.widgets.JosmTextField;
    5353
    5454
     
    194194                    public void mouseClicked(MouseEvent e) {
    195195                        try {
    196                             JosmTextField tf = (JosmTextField) hcb.getEditor().getEditorComponent();
     196                            JTextComponent tf = (JTextComponent) hcb.getEditor().getEditorComponent();
    197197                            tf.getDocument().insertString(tf.getCaretPosition(), " " + insertText, null);
    198198                        } catch (BadLocationException ex) {
Note: See TracChangeset for help on using the changeset viewer.