Changeset 3567 in josm for trunk/src/org


Ignore:
Timestamp:
2010-09-28T11:38:44+02:00 (14 years ago)
Author:
bastiK
Message:

applied #5514 (patch by cmuelle8) - improve TaggingPresetSearchDialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetSearchDialog.java

    r3408 r3567  
    1212import java.awt.event.KeyAdapter;
    1313import java.awt.event.KeyEvent;
     14import java.awt.event.MouseAdapter;
     15import java.awt.event.MouseEvent;
    1416import java.util.ArrayList;
    1517import java.util.Collection;
     
    255257        lsResult.setModel(lsResultModel);
    256258        lsResult.setCellRenderer(new ResultListCellRenderer());
     259        lsResult.addMouseListener(new MouseAdapter() {
     260            @Override
     261            public void mouseClicked(MouseEvent e) {
     262                if (e.getClickCount()>1) {
     263                    buttonAction(0, null);
     264                }
     265            }
     266        });
    257267        content.add(new JScrollPane(lsResult), BorderLayout.CENTER);
    258268
     
    279289        ckSearchInTags = new JCheckBox();
    280290        ckSearchInTags.setText(tr("Search in tags"));
     291        ckSearchInTags.setSelected(true);
    281292        ckSearchInTags.addItemListener(new ItemListener() {
    282293            @Override
Note: See TracChangeset for help on using the changeset viewer.