Revision 30148
trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/preferences/EditionPreferencePage.java | ||
---|---|---|
272 | 272 |
VectorialLayerEdited lyrEd = (VectorialLayerEdited) edManager |
273 | 273 |
.getLayerEdited(layerActive); |
274 | 274 |
ArrayList layersToSnap=lyrEd.getLayersToSnap(); |
275 |
ArrayList layersVect=new ArrayList(); |
|
275 | 276 |
for (int i = 0; i < layers.getLayersCount(); i++) { |
276 | 277 |
FLayer layer=layers.getLayer(i); |
277 |
if (layer instanceof FLyrVect){ |
|
278 |
FLyrVect lv=(FLyrVect)layer; |
|
279 |
tm.setValueAt(lv.getName(), i, 1); |
|
280 |
tm.setValueAt(layersToSnap.contains(lv), i, 0); |
|
281 |
tm.setValueAt(lv.getSpatialCache().getMaxFeatures(), i, 2); |
|
278 |
if (layer instanceof FLyrVect) { |
|
279 |
layersVect.add(layer); |
|
282 | 280 |
} |
283 | 281 |
} |
282 |
for (int i = 0; i < layersVect.size(); i++) { |
|
283 |
FLyrVect lv=(FLyrVect)layersVect.get(i); |
|
284 |
tm.setValueAt(lv.getName(), i, 1); |
|
285 |
tm.setValueAt(layersToSnap.contains(lv), i, 0); |
|
286 |
tm.setValueAt(lv.getSpatialCache().getMaxFeatures(), i, 2); |
|
287 |
} |
|
284 | 288 |
} |
285 | 289 |
|
286 | 290 |
public void storeValues() throws StoreException { |
Also available in: Unified diff