Revision 43799 branches/org.gvsig.desktop-2018a/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 | ||
---|---|---|
294 | 294 |
@Override |
295 | 295 |
public void setProvider(org.gvsig.fmap.dal.DataStoreProvider provider) { |
296 | 296 |
this.provider = (FeatureStoreProvider) provider; |
297 |
// FIXME: habr?a que hacer un bind del provider y a?adir un dispose en el openStore del DataManager |
|
298 |
// DisposeUtils.bind(this.provider); |
|
299 |
|
|
297 | 300 |
this.delegate((DynObject) provider); |
298 | 301 |
this.metadataChildren = new HashSet(); |
299 | 302 |
this.metadataChildren.add(provider); |
... | ... | |
1394 | 1397 |
exitEditingMode(); |
1395 | 1398 |
((FeatureSelection) this.getSelection()).deselectAll(); |
1396 | 1399 |
updateIndexes(); |
1397 |
notifyChange(FeatureStoreNotification.AFTER_CANCELEDITING);
|
|
1400 |
notifyChange(FeatureStoreNotification.AFTER_CANCELEDITING); |
|
1398 | 1401 |
|
1399 | 1402 |
case MODE_FULLEDIT: |
1400 | 1403 |
boolean clearSelection = this.hasStrongChanges; |
... | ... | |
1407 | 1410 |
((FeatureSelection) this.getSelection()).deselectAll(); |
1408 | 1411 |
} |
1409 | 1412 |
updateIndexes(); |
1410 |
notifyChange(FeatureStoreNotification.AFTER_CANCELEDITING);
|
|
1413 |
notifyChange(FeatureStoreNotification.AFTER_CANCELEDITING); |
|
1411 | 1414 |
} |
1412 | 1415 |
} catch (Exception e) { |
1413 | 1416 |
throw new StoreCancelEditingException(e, this.getName()); |
... | ... | |
1702 | 1705 |
} |
1703 | 1706 |
return this.getFeatureSet(query); |
1704 | 1707 |
} |
1705 |
|
|
1708 |
|
|
1706 | 1709 |
@Override |
1707 | 1710 |
public List<Feature> getFeatures(String filter) { |
1708 | 1711 |
return this.getFeatures(filter, null, true); |
... | ... | |
1724 | 1727 |
} |
1725 | 1728 |
return this.getFeatures(query, 100); |
1726 | 1729 |
} |
1727 |
|
|
1730 |
|
|
1728 | 1731 |
@Override |
1729 | 1732 |
public List<Feature> getFeatures(FeatureQuery query) { |
1730 | 1733 |
return this.getFeatures(query, 100); |
1731 | 1734 |
} |
1732 |
|
|
1735 |
|
|
1733 | 1736 |
@Override |
1734 | 1737 |
public List<Feature> getFeatures(FeatureQuery query, int pageSize) { |
1735 | 1738 |
try { |
... | ... | |
1766 | 1769 |
it.dispose(); |
1767 | 1770 |
return f; |
1768 | 1771 |
} |
1769 |
|
|
1772 |
|
|
1770 | 1773 |
@Override |
1771 | 1774 |
public void accept(Visitor visitor) throws BaseException { |
1772 | 1775 |
FeatureSet set = getFeatureSet(); |
... | ... | |
2605 | 2608 |
eft.remove(attr.getName()); |
2606 | 2609 |
} |
2607 | 2610 |
EditableFeatureAttributeDescriptor attrTime = eft.add( |
2608 |
timeSupport.getAttributeName(),
|
|
2611 |
timeSupport.getAttributeName(), |
|
2609 | 2612 |
timeSupport.getDataType() |
2610 | 2613 |
); |
2611 | 2614 |
attrTime.setIsTime(true); |
2612 | 2615 |
attrTime.setFeatureAttributeEmulator(timeSupport); |
2613 | 2616 |
eft.setDefaultTimeAttributeName(timeSupport.getAttributeName()); |
2614 | 2617 |
this.defaultFeatureType = eft.getNotEditableCopy(); |
2615 |
|
|
2618 |
|
|
2616 | 2619 |
this.timeSupport = timeSupport; |
2617 | 2620 |
} |
2618 | 2621 |
|
Also available in: Unified diff