Changeset 30737 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java
- Timestamp:
- 2014-10-18T23:07:52+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java
r30532 r30737 358 358 return; 359 359 360 Set<Relation> relations = new TreeSet< Relation>(360 Set<Relation> relations = new TreeSet<>( 361 361 DefaultNameFormatter.getInstance().getRelationComparator()); 362 362 for( OsmPrimitive element : newSelection ) { … … 415 415 416 416 private static Map<String, List<String>> loadRoles() { 417 Map<String, List<String>> result = new HashMap< String, List<String>>();417 Map<String, List<String>> result = new HashMap<>(); 418 418 try { 419 419 ClassLoader classLoader = RelContextDialog.class.getClassLoader(); … … 425 425 if( t.hasMoreTokens() ) { 426 426 String type = t.nextToken(); 427 List<String> roles = new ArrayList< String>();427 List<String> roles = new ArrayList<>(); 428 428 while( t.hasMoreTokens() ) 429 429 roles.add(t.nextToken()); … … 442 442 JPanel panel = new JPanel(new GridBagLayout()); 443 443 444 List<String> items = new ArrayList< String>();444 List<String> items = new ArrayList<>(); 445 445 for( String role : roleBoxModel.getRoles() ) { 446 446 if( role.length() > 1 ) … … 527 527 Collection<OsmPrimitive> selected = Main.main.getCurrentDataSet().getSelected(); 528 528 Relation r = chosenRelation.get(); 529 List<Command> commands = new ArrayList< Command>();529 List<Command> commands = new ArrayList<>(); 530 530 for( int i = 0; i < r.getMembersCount(); i++ ) { 531 531 RelationMember m = r.getMember(i); … … 623 623 624 624 private class RoleComboBoxModel extends AbstractListModel<String> implements ComboBoxModel<String> { 625 private List<String> roles = new ArrayList< String>();625 private List<String> roles = new ArrayList<>(); 626 626 private int selectedIndex = -1; 627 627 private JComboBox<String> combobox; … … 646 646 combobox.setEnabled(true); 647 647 648 List<String> items = new ArrayList< String>();648 List<String> items = new ArrayList<>(); 649 649 if( chosenRelation != null && chosenRelation.get() != null ) { 650 650 if( chosenRelation.isMultipolygon() ) {
Note:
See TracChangeset
for help on using the changeset viewer.
