Changeset 30532 in osm for applications/editors/josm/plugins/wikipedia/src/org
- Timestamp:
- 2014-07-14T04:18:06+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaToggleDialog.java
r30100 r30532 60 60 final StringProperty wikipediaLang = new StringProperty("wikipedia.lang", LanguageInfo.getJOSMLocaleCode().substring(0, 2)); 61 61 final Set<String> articles = new HashSet<String>(); 62 final DefaultListModel model = new DefaultListModel();63 final JList list = new JList(model) {62 final DefaultListModel<WikipediaEntry> model = new DefaultListModel<>(); 63 final JList<WikipediaEntry> list = new JList<WikipediaEntry>(model) { 64 64 65 65 { … … 84 84 85 85 @Override 86 public JLabel getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {86 public JLabel getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { 87 87 JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); 88 88 final WikipediaEntry entry = (WikipediaEntry) value;
Note:
See TracChangeset
for help on using the changeset viewer.