Revision 42990 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretable/table/DefaultFeatureTableModel.java
DefaultFeatureTableModel.java | ||
---|---|---|
168 | 168 |
} |
169 | 169 |
|
170 | 170 |
private void updatePagerWithHiddenColums() { |
171 |
FeatureQuery query = this.getFeaturePager().getFeatureQuery(); |
|
172 |
if (this.getFeaturePager().getFeatureStore().isEditing()) { |
|
173 |
if (query.hasConstantsAttributeNames()) { |
|
174 |
query.clearConstantsAttributeNames(); |
|
175 |
} |
|
176 |
} else { |
|
177 |
query.setConstantsAttributeNames(this.getHiddenColumnNames()); |
|
178 |
} |
|
179 |
try { |
|
180 |
this.getFeaturePager().reload(); |
|
181 |
} catch (BaseException ex) { |
|
182 |
logger.warn("Can't reload paging-helper.", ex); |
|
183 |
} |
|
171 |
return; |
|
172 |
|
|
173 |
// FeatureQuery query = this.getFeaturePager().getFeatureQuery(); |
|
174 |
// if (this.getFeaturePager().getFeatureStore().isEditing()) { |
|
175 |
// if (query.hasConstantsAttributeNames()) { |
|
176 |
// query.clearConstantsAttributeNames(); |
|
177 |
// } |
|
178 |
// } else { |
|
179 |
// query.setConstantsAttributeNames(this.getHiddenColumnNames()); |
|
180 |
// } |
|
181 |
// try { |
|
182 |
// this.getFeaturePager().reload(); |
|
183 |
// } catch (BaseException ex) { |
|
184 |
// logger.warn("Can't reload paging-helper.", ex); |
|
185 |
// } |
|
184 | 186 |
} |
185 | 187 |
|
186 | 188 |
@Override |
Also available in: Unified diff