Changeset 30737 in osm for applications/editors/josm/plugins/surveyor
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/surveyor/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/ButtonDescription.java
r26509 r30737 73 73 */ 74 74 private static List<SurveyorActionDescription> createFromOneElement(SurveyorActionDescription actionDescription) { 75 List<SurveyorActionDescription> list = new ArrayList< SurveyorActionDescription>();75 List<SurveyorActionDescription> list = new ArrayList<>(); 76 76 list.add(actionDescription); 77 77 return list; -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorActionDescription.java
r13497 r30737 51 51 super(); 52 52 this.actionClass = actionClass; 53 this.params = new ArrayList< String>();53 this.params = new ArrayList<>(); 54 54 for (int index = 0; index < params.length; index++) { 55 55 this.params.add(params[index]); -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorActionFactory.java
r13497 r30737 18 18 */ 19 19 public class SurveyorActionFactory { 20 private static Map<String, SurveyorAction>actionCache = new HashMap< String, SurveyorAction>();20 private static Map<String, SurveyorAction>actionCache = new HashMap<>(); 21 21 public static final String DEFAULT_PACKAGE = SurveyorActionFactory.class.getPackage().getName() + ".action"; 22 22 -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorComponent.java
r30646 r30737 48 48 public SurveyorComponent() { 49 49 super(); 50 hotKeys = new HashSet< String>();50 hotKeys = new HashSet<>(); 51 51 setLayout(new BorderLayout()); 52 52 streetLabel = new JLabel(tr("Way: ")); … … 132 132 e.printStackTrace(); 133 133 } 134 List<SurveyorActionDescription> actions = new ArrayList< SurveyorActionDescription>();134 List<SurveyorActionDescription> actions = new ArrayList<>(); 135 135 while(parser.hasNext()) { 136 136 Object object = parser.next(); -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorShowAction.java
r30646 r30737 144 144 SurveyorComponent surveyorComponent = null; 145 145 parser.start(new BufferedReader(new InputStreamReader(in))); 146 List<SurveyorActionDescription> actions = new ArrayList< SurveyorActionDescription>();146 List<SurveyorActionDescription> actions = new ArrayList<>(); 147 147 while(parser.hasNext()) { 148 148 Object object = parser.next(); … … 154 154 ((ButtonDescription)object).setActions(actions); 155 155 surveyorComponent.addButton(((ButtonDescription)object)); 156 actions = new ArrayList< SurveyorActionDescription>();156 actions = new ArrayList<>(); 157 157 } else if (object instanceof SurveyorActionDescription) { 158 158 //System.out.println("SurveyorActionDescription " + object); -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetNodeAction.java
r30646 r30737 38 38 @Override 39 39 public void setParameters(List<String> parameters) { 40 keyValues = new ArrayList< Pair<String, String>>();40 keyValues = new ArrayList<>(); 41 41 int pos; 42 42 String key; … … 47 47 key = keyValuePair.substring(0, pos); 48 48 value = keyValuePair.substring(pos + 1); 49 keyValues.add(new Pair< String, String>(key, value));49 keyValues.add(new Pair<>(key, value)); 50 50 } else { 51 51 System.err.println("SetNodeAction: ignoring invalid key value pair: " + keyValuePair); -
applications/editors/josm/plugins/surveyor/src/org/dinopolis/util/io/Tokenizer.java
r30646 r30737 730 730 { 731 731 int token = nextToken(); 732 List<String> list = new ArrayList< String>();732 List<String> list = new ArrayList<>(); 733 733 String word = ""; 734 734 // while(token != Tokenizer.EOF) … … 790 790 Iterator<String> iterator = list.iterator(); 791 791 String value; 792 List<String> new_list = new ArrayList< String>();792 List<String> new_list = new ArrayList<>(); 793 793 while(iterator.hasNext()) 794 794 {
Note:
See TracChangeset
for help on using the changeset viewer.