Changeset 30532 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java
- Timestamp:
- 2014-07-14T04:18:06+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java
r30145 r30532 137 137 138 138 final MouseListener relationMouseAdapter = new ChosenRelationMouseAdapter(); 139 final JComboBox roleBox = new JComboBox(); 139 final JComboBox<String> roleBox = new JComboBox<>(); 140 140 roleBoxModel = new RoleComboBoxModel(roleBox); 141 141 roleBox.setModel(roleBoxModel); … … 620 620 setEnabled(newRelation != null); 621 621 } 622 622 } 623 623 624 private class RoleComboBoxModel extends AbstractListModel implements ComboBoxModel { 624 private class RoleComboBoxModel extends AbstractListModel<String> implements ComboBoxModel<String> { 625 625 private List<String> roles = new ArrayList<String>(); 626 626 private int selectedIndex = -1; 627 private JComboBox combobox; 627 private JComboBox<String> combobox; 628 628 private String membersRole; 629 629 private final String EMPTY_ROLE = tr("<empty>"); 630 630 private final String ANOTHER_ROLE = tr("another..."); 631 631 632 public RoleComboBoxModel( JComboBox combobox ) { 632 public RoleComboBoxModel( JComboBox<String> combobox ) { 633 633 super(); 634 634 this.combobox = combobox; … … 708 708 } 709 709 710 public ObjectgetElementAt( int index ) {710 public String getElementAt( int index ) { 711 711 return getRole(index); 712 712 }
Note:
See TracChangeset
for help on using the changeset viewer.