Ignore:
Timestamp:
2011-04-14T12:46:01+02:00 (14 years ago)
Author:
beata.jancso
Message:

fix for an error occured when MapDust is used with Bing maps.

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  
    187187     * @param mapdustBugsList The list of <code>MapdustBug</code>s
    188188     */
    189     public void updateComponents(List<MapdustBug> mapdustBugsList) {
     189    public synchronized void updateComponents(List<MapdustBug> mapdustBugsList) {
    190190        this.mapdustBugsList = mapdustBugsList;
    191191        if (mapdustBugsList == null || mapdustBugsList.isEmpty()) {
     
    197197            cmpMapdustBugs.getViewport().setView(textJList);
    198198        } 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));
    211207            }
     208            cmpMapdustBugs.getViewport().setView(mapdustBugsJList);
    212209        }
    213210    }
Note: See TracChangeset for help on using the changeset viewer.