Changeset 30532 in osm for applications/editors/josm/plugins/OsmInspectorPlugin/src
- Timestamp:
- 2014-07-14T04:18:06+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/gui/OsmInspectorDialog.java
r29547 r30532 13 13 import javax.swing.DefaultListModel; 14 14 import javax.swing.JList; 15 import javax.swing.JScrollBar;16 15 import javax.swing.JScrollPane; 17 16 import javax.swing.ListSelectionModel; 18 17 import javax.swing.ScrollPaneConstants; 19 import javax.swing.ScrollPaneLayout;20 18 import javax.swing.event.ListSelectionEvent; 21 19 import javax.swing.event.ListSelectionListener; … … 38 36 39 37 private OsmInspectorLayer layer; 40 private JList bugsList;38 private JList<String> bugsList; 41 39 private OsmInspectorNextAction actNext; 42 40 private OsmInspectorPrevAction actPrev; 43 private DefaultListModel model;41 private DefaultListModel<String> model; 44 42 45 43 private OsmInspectorBugInfoDialog bugInfoDialog; 46 /**47 *48 */49 private static final long serialVersionUID = 5465011236663660394L;50 51 44 52 45 public void updateNextPrevAction(OsmInspectorLayer l) { … … 61 54 Main.map.addToggleDialog(this, true); 62 55 63 model = new DefaultListModel ();56 model = new DefaultListModel<>(); 64 57 refreshModel(); 65 bugsList = new JList (model);58 bugsList = new JList<>(model); 66 59 bugsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 67 60 bugsList.setLayoutOrientation(JList.VERTICAL_WRAP); … … 125 118 KeyEvent.VK_K, Shortcut.CTRL_SHIFT); 126 119 Main.registerActionShortcut(actNext, snext); 127 128 120 } 129 121 … … 135 127 } 136 128 } 137 138 129 } 139 130 … … 168 159 public void hideNotify() { 169 160 if (dialogsPanel != null) { 170 // TODO Auto-generated method stub171 161 super.hideNotify(); 172 162 } … … 176 166 ListSelectionListener { 177 167 178 /**179 *180 */181 private static final long serialVersionUID = 123266015594117296L;182 168 private OsmInspectorLayer layer; 183 169 … … 203 189 @Override 204 190 public void valueChanged(ListSelectionEvent arg0) { 205 // TODO Auto-generated method stub206 207 191 } 208 192 } … … 218 202 ListSelectionListener { 219 203 220 /**221 *222 */223 private static final long serialVersionUID = 1L;224 204 private OsmInspectorLayer layer; 225 205 … … 227 207 super("prev"); 228 208 layer = (OsmInspectorLayer) inspector; 229 230 209 } 231 210 … … 246 225 @Override 247 226 public void valueChanged(ListSelectionEvent e) { 248 // TODO Auto-generated method stub249 250 227 } 251 228 } … … 253 230 @Override 254 231 public void mouseClicked(MouseEvent e) { 255 // TODO Auto-generated method stub256 257 232 } 258 233 259 234 @Override 260 235 public void mouseEntered(MouseEvent e) { 261 // TODO Auto-generated method stub262 263 236 } 264 237 265 238 @Override 266 239 public void mouseExited(MouseEvent e) { 267 // TODO Auto-generated method stub268 269 240 } 270 241 271 242 @Override 272 243 public void mousePressed(MouseEvent e) { 273 // TODO Auto-generated method stub274 275 244 } 276 245 277 246 @Override 278 247 public void mouseReleased(MouseEvent e) { 279 // TODO Auto-generated method stub280 281 248 } 282 249 … … 288 255 refreshBugList(); 289 256 } 290 291 257 } 292 258 293 259 private void refreshBugList() { 294 260 bugsList.clearSelection(); 295 bugsList = new JList(model); 296 261 bugsList = new JList<>(model); 297 262 } 298 263 … … 317 282 318 283 } 319 320 284 }
Note:
See TracChangeset
for help on using the changeset viewer.