Changeset 30532 in osm for applications/editors/josm/plugins/routing/src/com/innovant
- Timestamp:
- 2014-07-14T04:18:06+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingDialog.java
r30361 r30532 52 52 public class RoutingDialog extends ToggleDialog { 53 53 54 private final DefaultListModel model;55 private JList jList = null;54 private final DefaultListModel<String> model; 55 private JList<String> jList = null; 56 56 private JScrollPane jScrollPane = null; 57 57 … … 64 64 super(tr("Routing"), "routing", tr("Open a list of routing nodes"), 65 65 Shortcut.registerShortcut("subwindow:routing", tr("Toggle: {0}", tr("Routing")), KeyEvent.VK_R, Shortcut.ALT_CTRL_SHIFT), 150); 66 model = new DefaultListModel ();66 model = new DefaultListModel<>(); 67 67 createLayout(getJScrollPane(), false, null); 68 68 } … … 88 88 * @return javax.swing.JList 89 89 */ 90 private JList getJList() {90 private JList<String> getJList() { 91 91 if (jList == null) { 92 jList = new JList ();92 jList = new JList<>(); 93 93 jList.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT); 94 94 jList.setModel(model); -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingPreferenceDialog.java
r30361 r30532 110 110 JPanel p = new JPanel(new GridBagLayout()); 111 111 p.add(new JLabel(tr("Weight")), GBC.std().insets(0, 0, 5, 0)); 112 JComboBox key = new JComboBox();112 JComboBox<String> key = new JComboBox<>(); 113 113 for (OsmWayTypes pk : OsmWayTypes.values()) 114 114 key.addItem(pk.getTag());
Note:
See TracChangeset
for help on using the changeset viewer.