Revision 33261 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java

View differences:

FLyrVect.java
56 56
import org.apache.log4j.Logger;
57 57
import org.cresques.cts.ICoordTrans;
58 58
import org.gvsig.exceptions.BaseException;
59
import org.gvsig.tools.file.PathGenerator;
59 60

  
60 61
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
61 62
import com.hardcode.gdbms.engine.data.DataSourceFactory;
......
179 180
    private FLyrVectLinkProperties linkProperties=new FLyrVectLinkProperties();
180 181
    //private ArrayList linkProperties=null;
181 182
    private boolean waitTodraw=false;
182

  
183
    private static PathGenerator pathGenerator=PathGenerator.getInstance();
184
    
183 185
    public boolean isWaitTodraw() {
184 186
		return waitTodraw;
185 187
	}
......
1199 1201
        }
1200 1202
        if (source instanceof VectorialFileAdapter) {
1201 1203
            xml.putProperty("type", "vectorial");
1202
            xml.putProperty("file", ((VectorialFileAdapter) source)
1203
                    .getFile());
1204
            xml.putProperty("file", pathGenerator.getPath(((VectorialFileAdapter) source)
1205
                    .getFile().getAbsolutePath()));
1204 1206
            try {
1205 1207
                xml.putProperty("recordset-name", source.getRecordset()
1206 1208
                        .getName());

Also available in: Unified diff