Changeset 30737 in osm for applications/editors/josm/plugins/tageditor
- Timestamp:
- 2014-10-18T23:07:52+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/ac/AutoCompletionListViewer.java
r29854 r30737 94 94 this.autoCompletionList = list; 95 95 createGUI(); 96 listener = new ArrayList< IAutoCompletionListListener>();96 listener = new ArrayList<>(); 97 97 } 98 98 … … 103 103 this.autoCompletionList = null; 104 104 createGUI(); 105 listener = new ArrayList< IAutoCompletionListListener>();105 listener = new ArrayList<>(); 106 106 } 107 107 -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/editor/TagEditorModel.java
r30488 r30737 147 147 */ 148 148 public void updateJOSMSelection() { 149 ArrayList<Command> commands = new ArrayList< Command>();149 ArrayList<Command> commands = new ArrayList<>(); 150 150 Collection<OsmPrimitive> selection = Main.main.getCurrentDataSet().getSelected(); 151 151 if (selection == null) -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/preset/ui/PresetsTableModel.java
r30488 r30737 14 14 //private static final Logger logger = Logger.getLogger(PresetsTableModel.class.getName()); 15 15 16 private final ArrayList<TableModelListener> listeners = new ArrayList< TableModelListener>();17 private final ArrayList<TaggingPreset> items = new ArrayList< TaggingPreset>();18 private final ArrayList<TaggingPreset> visibleItems = new ArrayList< TaggingPreset>();16 private final ArrayList<TableModelListener> listeners = new ArrayList<>(); 17 private final ArrayList<TaggingPreset> items = new ArrayList<>(); 18 private final ArrayList<TaggingPreset> visibleItems = new ArrayList<>(); 19 19 20 20 protected void initModelFromPresets(Collection<TaggingPreset> presets) { -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/preset/ui/TabularPresetSelector.java
r30488 r30737 40 40 private PresetsTable presetsTable = null; 41 41 private JTextField tfFilter = null; 42 private final ArrayList<IPresetSelectorListener> listeners = new ArrayList< IPresetSelectorListener>();42 private final ArrayList<IPresetSelectorListener> listeners = new ArrayList<>(); 43 43 private JScrollPane scrollPane; 44 44 private JButton btnApply; -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/tagspec/TagSpecification.java
r30488 r30737 39 39 */ 40 40 public TagSpecification() { 41 lables = new ArrayList< LabelSpecification>();41 lables = new ArrayList<>(); 42 42 } 43 43 -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/tagspec/TagSpecifications.java
r30488 r30737 91 91 */ 92 92 public TagSpecifications() { 93 tagSpecifications = new ArrayList< TagSpecification>();93 tagSpecifications = new ArrayList<>(); 94 94 } 95 95 … … 125 125 126 126 public List<AutoCompletionListItem> getKeysForAutoCompletion(AutoCompletionContext context) { 127 ArrayList<AutoCompletionListItem> keys = new ArrayList< AutoCompletionListItem>();127 ArrayList<AutoCompletionListItem> keys = new ArrayList<>(); 128 128 for (TagSpecification spec : tagSpecifications) { 129 129 if (!spec.isApplicable(context)) { … … 139 139 140 140 public List<AutoCompletionListItem> getLabelsForAutoCompletion(String forKey, AutoCompletionContext context) { 141 ArrayList<AutoCompletionListItem> items = new ArrayList< AutoCompletionListItem>();141 ArrayList<AutoCompletionListItem> items = new ArrayList<>(); 142 142 for (TagSpecification spec : tagSpecifications) { 143 143 if (spec.getKey().equals(forKey)) { … … 164 164 */ 165 165 public ArrayList<KeyValuePair> asList() { 166 ArrayList<KeyValuePair> entries = new ArrayList< KeyValuePair>();166 ArrayList<KeyValuePair> entries = new ArrayList<>(); 167 167 168 168 for (TagSpecification s : tagSpecifications) { … … 233 233 */ 234 234 protected void startElementOsmTagDefinitions(Attributes atts) throws SAXException { 235 tagSpecifications = new ArrayList< TagSpecification>();235 tagSpecifications = new ArrayList<>(); 236 236 } 237 237 -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/tagspec/ui/TabularTagSelector.java
r30703 r30737 38 38 private JButton btnApply; 39 39 private JScrollPane scrollPane; 40 private final ArrayList<ITagSelectorListener> listeners = new ArrayList< ITagSelectorListener>();40 private final ArrayList<ITagSelectorListener> listeners = new ArrayList<>(); 41 41 42 42 protected JPanel buildFilterPanel() { -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/tagspec/ui/TagsTableModel.java
r30488 r30737 23 23 24 24 public TagsTableModel() { 25 items = new ArrayList< KeyValuePair>();26 visibleItems = new ArrayList< KeyValuePair>();25 items = new ArrayList<>(); 26 visibleItems = new ArrayList<>(); 27 27 } 28 28
Note:
See TracChangeset
for help on using the changeset viewer.