Changeset 25839 in osm for applications/editors/josm/plugins/mapdust
- Timestamp:
- 2011-04-14T12:46:01+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustBugListPanel.java
r25828 r25839 187 187 * @param mapdustBugsList The list of <code>MapdustBug</code>s 188 188 */ 189 public void updateComponents(List<MapdustBug> mapdustBugsList) {189 public synchronized void updateComponents(List<MapdustBug> mapdustBugsList) { 190 190 this.mapdustBugsList = mapdustBugsList; 191 191 if (mapdustBugsList == null || mapdustBugsList.isEmpty()) { … … 197 197 cmpMapdustBugs.getViewport().setView(textJList); 198 198 } else { 199 synchronized (mapdustBugsJList) { 200 if (mapdustBugsJList == null) { 201 mapdustBugsJList = ComponentUtil.createJList( 202 mapdustBugsList, menu); 203 mapdustBugsJList.addListSelectionListener(this); 204 DisplayMenu adapter = new DisplayMenu(mapdustBugsJList, 205 menu); 206 mapdustBugsJList.addMouseListener(adapter); 207 } else { 208 mapdustBugsJList.setModel(new BugsListModel(mapdustBugsList)); 209 } 210 cmpMapdustBugs.getViewport().setView(mapdustBugsJList); 199 if (mapdustBugsJList == null) { 200 mapdustBugsJList = ComponentUtil.createJList(mapdustBugsList, 201 menu); 202 mapdustBugsJList.addListSelectionListener(this); 203 DisplayMenu adapter = new DisplayMenu(mapdustBugsJList, menu); 204 mapdustBugsJList.addMouseListener(adapter); 205 } else { 206 mapdustBugsJList.setModel(new BugsListModel(mapdustBugsList)); 211 207 } 208 cmpMapdustBugs.getViewport().setView(mapdustBugsJList); 212 209 } 213 210 }
Note:
See TracChangeset
for help on using the changeset viewer.