Revision 41320 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/impl/DefaultPluginsManager.java
DefaultPluginsManager.java | ||
---|---|---|
274 | 274 |
Thread th = new Thread(new Runnable() { |
275 | 275 |
public void run() { |
276 | 276 |
try { |
277 |
Thread.sleep(1000);
|
|
277 |
Thread.sleep(10); |
|
278 | 278 |
} catch (Exception exc) { |
279 | 279 |
// Ignore error |
280 | 280 |
} |
... | ... | |
312 | 312 |
config.setLocaleLanguage(locale.getLanguage()); |
313 | 313 |
config.setLocaleCountry(locale.getCountry()); |
314 | 314 |
config.setLocaleVariant(locale.getVariant()); |
315 |
|
|
315 |
|
|
316 |
setCurrentLocaleUI(locale); |
|
317 |
} |
|
318 |
|
|
319 |
private void setCurrentLocaleUI(final Locale locale) { |
|
316 | 320 |
if( !SwingUtilities.isEventDispatchThread() ) { |
317 | 321 |
try { |
318 | 322 |
SwingUtilities.invokeAndWait(new Runnable() { |
319 | 323 |
public void run() { |
320 |
try { |
|
321 |
JComponent.setDefaultLocale(locale); |
|
322 |
} catch (Exception ex) { |
|
323 |
// Do nothing |
|
324 |
} |
|
325 |
MDIFrame.getInstance().setLocale(locale); |
|
324 |
setCurrentLocaleUI(locale); |
|
326 | 325 |
} |
327 | 326 |
}); |
328 | 327 |
} catch (Exception ex) { |
329 | 328 |
// Ignore |
330 | 329 |
} |
331 | 330 |
} |
331 |
try { |
|
332 |
JComponent.setDefaultLocale(locale); |
|
333 |
} catch (Exception ex) { |
|
334 |
logger.warn("Problems setting locale to JComponent.",ex); |
|
335 |
} |
|
336 |
try { |
|
337 |
MDIFrame.getInstance().setLocale(locale); |
|
338 |
} catch(Exception ex) { |
|
339 |
logger.warn("Problems settings locale to MDIFrame.",ex); |
|
340 |
} |
|
332 | 341 |
} |
333 | 342 |
|
334 | 343 |
} |
Also available in: Unified diff