Revision 41314 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.coreplugin.app/org.gvsig.coreplugin.app.mainplugin/src/main/java/org/gvsig/coreplugin/mdiManager/NewSkin.java

View differences:

NewSkin.java
44 44
import java.util.HashMap;
45 45
import java.util.Hashtable;
46 46
import java.util.Iterator;
47
import java.util.Locale;
47 48
import java.util.Map;
48 49
import java.util.TreeMap;
49 50

  
......
1085 1086
     * @see com.iver.andami.ui.mdiManager.MDIManager#getAllWindows()
1086 1087
     */
1087 1088
    public IWindow[] getAllWindows() {
1089
        if( fws == null ) {
1090
            return null;
1091
        }
1088 1092
        ArrayList windows = new ArrayList();
1089 1093
        Iterator i = fws.getWindowIterator();
1090 1094

  
......
1456 1460
        
1457 1461
        return newReferencePoint;
1458 1462
    }
1463

  
1464
    public void setLocale(Locale locale) {
1465
        IWindow[] win = this.getAllWindows();
1466
        if( win == null ) {
1467
            return;
1468
        }
1469
        for( int i=0; i<win.length; i++ ) {
1470
            if( win[i] instanceof Component ) {
1471
                try {
1472
                    ((Component)win[i]).setLocale(locale);
1473
                } catch(Exception ex) {
1474
                    // Ignore errors and try others windows.
1475
                }
1476
            }
1477
        }
1478
    }
1479

  
1459 1480
    
1460 1481
}

Also available in: Unified diff