Revision 44160 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureStore.java
DefaultFeatureStore.java | ||
---|---|---|
53 | 53 |
import org.gvsig.fmap.dal.DataManager; |
54 | 54 |
import org.gvsig.fmap.dal.DataQuery; |
55 | 55 |
import org.gvsig.fmap.dal.DataServerExplorer; |
56 |
import org.gvsig.fmap.dal.DataServerExplorer.DataResource; |
|
56 | 57 |
import org.gvsig.fmap.dal.DataSet; |
57 | 58 |
import org.gvsig.fmap.dal.DataStore; |
58 | 59 |
import org.gvsig.fmap.dal.DataStoreNotification; |
... | ... | |
1559 | 1560 |
if( explorer == null ) { |
1560 | 1561 |
return; |
1561 | 1562 |
} |
1562 |
File f = explorer.getResourcePath(this, "dal");
|
|
1563 |
if( f == null ) {
|
|
1563 |
DataResource resource = explorer.getResource(this, "dal");
|
|
1564 |
if( resource == null ) {
|
|
1564 | 1565 |
return; |
1565 | 1566 |
} |
1566 | 1567 |
DALFile dalFile = DALFile.getDALFile(); |
1567 | 1568 |
dalFile.setStore(this); |
1568 | 1569 |
if( !dalFile.isEmpty() ) { |
1569 |
dalFile.write(f);
|
|
1570 |
dalFile.write(resource);
|
|
1570 | 1571 |
} |
1571 | 1572 |
} catch (Exception ex) { |
1572 | 1573 |
LOG.warn("Can't save DAL File", ex); |
... | ... | |
1580 | 1581 |
if( explorer == null ) { |
1581 | 1582 |
return; |
1582 | 1583 |
} |
1583 |
File f = explorer.getResourcePath(this, "dal");
|
|
1584 |
if( f == null || !f.exists() ) {
|
|
1584 |
DataResource resource = explorer.getResource(this, "dal");
|
|
1585 |
if( resource == null || !resource.exists() ) {
|
|
1585 | 1586 |
return; |
1586 | 1587 |
} |
1587 |
DALFile dalFile = DALFile.getDALFile(f);
|
|
1588 |
DALFile dalFile = DALFile.getDALFile(resource);
|
|
1588 | 1589 |
if( !dalFile.isEmpty() ) { |
1589 | 1590 |
dalFile.updateStore(this); |
1590 | 1591 |
} |
Also available in: Unified diff