Revision 28

View differences:

org.gvsig.educa.thematicmap/trunk/org.gvsig.educa.thematicmap/org.gvsig.educa.thematicmap.main/src/main/java/org/gvsig/educa/thematicmap/main/Main.java
48 48
import org.gvsig.educa.thematicmap.compilation.ThematicMapCompiler;
49 49
import org.gvsig.educa.thematicmap.compilation.ThematicMapCompilerListener;
50 50
import org.gvsig.educa.thematicmap.compilation.ThematicMapCompilerStatus;
51
import org.gvsig.educa.thematicmap.impl.util.FileUtils;
52
import org.gvsig.educa.thematicmap.impl.util.FilenameUtils;
53 51
import org.gvsig.educa.thematicmap.map.ThematicMap;
54 52
import org.gvsig.educa.thematicmap.swing.ThematicMapSwingLocator;
55 53
import org.gvsig.educa.thematicmap.swing.ThematicMapSwingManager;
......
118 116
        disposeManager = ToolsLocator.getDisposableManager();
119 117

  
120 118
        String defaultFolderPath =
121
            FilenameUtils
122
                .getWithoutPrefix("~/gvSIG/plugins/org.gvsig.educa.thematicmap.app.viewer/thematicMaps");
119
            "gvSIG/plugins/org.gvsig.educa.thematicmap.app.viewer/thematicMaps";
123 120
        File defaultFolder =
124 121
            new File(System.getProperty("user.home"), defaultFolderPath);
125 122

  
126
        if (FileUtils.isReadableFolder(defaultFolder)) {
123
        if (defaultFolder.exists() && defaultFolder.isDirectory()) {
127 124
            manager.setInstallationMapFolder(defaultFolder.getAbsolutePath());
128 125
        }
129 126

  

Also available in: Unified diff