Changeset 30532 in osm for applications/editors/josm/plugins/waypoint_search
- Timestamp:
- 2014-07-14T04:18:06+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified applications/editors/josm/plugins/waypoint_search/src/org/openstreetmap/josm/plugins/waypointSearch/SelectWaypointDialog.java ¶
r27467 r30532 17 17 import static org.openstreetmap.josm.tools.I18n.tr; 18 18 19 20 19 public class SelectWaypointDialog extends ToggleDialog implements KeyListener, MouseListener { 21 20 22 21 private JTextField searchPattern = new JTextField(20); 23 private DefaultListModel listModel = new DefaultListModel(); 24 private JList searchResult = new JList(listModel); 22 private DefaultListModel<String> listModel = new DefaultListModel<>(); 23 private JList<String> searchResult = new JList<>(listModel); 25 24 private List<Marker> SearchResultObjectCache = new ArrayList<Marker>(); 26 25 private boolean first_time_search = true; 27 26 private Engine engine = new Engine(); 28 29 27 30 28 public SelectWaypointDialog(String name, String iconName, String tooltip, … … 33 31 build(); 34 32 } 35 36 33 37 34 protected void build() { … … 60 57 createLayout(panel, false, null); 61 58 } 62 63 64 59 65 60 public void updateSearchResults(){ … … 76 71 } 77 72 } 78 79 73 80 74 @Override … … 82 76 // TODO Auto-generated method stub 83 77 } 84 85 78 86 79 @Override … … 90 83 } 91 84 92 93 85 @Override 94 86 public void keyTyped(KeyEvent arg0) { 95 87 first_time_search = false; 96 88 } 97 98 89 99 90 @Override … … 108 99 } 109 100 110 111 101 @Override 112 102 public void mouseEntered(MouseEvent arg0) { 113 // TODO Auto-generated method stub114 115 103 } 116 117 104 118 105 @Override 119 106 public void mouseExited(MouseEvent arg0) { 120 // TODO Auto-generated method stub121 122 107 } 123 124 108 125 109 @Override … … 128 112 searchPattern.selectAll(); 129 113 } 130 131 114 } 132 133 115 134 116 @Override 135 117 public void mouseReleased(MouseEvent arg0) { 136 // TODO Auto-generated method stub137 138 118 } 139 119 }
Note:
See TracChangeset
for help on using the changeset viewer.