Changeset 4727 in josm


Ignore:
Timestamp:
Dec 27, 2011 6:33:59 PM (17 months ago)
Author:
jttt
Message:

Do not access gui from non EDT thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java

    r4072 r4727  
    10101010                        } 
    10111011                    } 
    1012             ); 
     1012                    ); 
    10131013        } 
    10141014 
     
    10991099        private BufferedReader reader; 
    11001100        private boolean canceled; 
     1101        private final List<ExtendedSourceEntry> sources = new ArrayList<ExtendedSourceEntry>(); 
    11011102 
    11021103        public SourceLoader(String url) { 
     
    11171118        } 
    11181119 
    1119         @Override 
    1120         protected void finish() {} 
    11211120 
    11221121        protected void warn(Exception e) { 
     
    11311130                    JOptionPane.ERROR_MESSAGE, 
    11321131                    ht(getStr(I18nString.FAILED_TO_LOAD_SOURCES_FROM_HELP_TOPIC)) 
    1133             ); 
     1132                    ); 
    11341133        } 
    11351134 
    11361135        @Override 
    11371136        protected void realRun() throws SAXException, IOException, OsmTransferException { 
    1138             LinkedList<ExtendedSourceEntry> sources = new LinkedList<ExtendedSourceEntry>(); 
    11391137            String lang = LanguageInfo.getLanguageCodeXML(); 
    11401138            try { 
     
    12101208                return; 
    12111209            } 
     1210        } 
     1211 
     1212        @Override 
     1213        protected void finish() { 
    12121214            availableSourcesModel.setSources(sources); 
    12131215        } 
     
    12851287                        } 
    12861288                    } 
    1287             ); 
     1289                    ); 
    12881290        } 
    12891291 
Note: See TracChangeset for help on using the changeset viewer.