Revision 580 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java
FLyrVect.java | ||
---|---|---|
318 | 318 |
BitSet selected = selectionSupport.getSelection(); |
319 | 319 |
XMLEntity xml = super.getXMLEntity(); |
320 | 320 |
xml.addChild(legend.getXMLEntity()); |
321 |
|
|
322 |
if (selected != null) { |
|
323 |
xml.putProperty("numBitSet", selected.cardinality()); |
|
324 |
|
|
325 |
int n = 0; |
|
326 |
|
|
327 |
for (int i = 0; i < selected.length(); i++) { |
|
328 |
if (selected.get(i)) { |
|
329 |
xml.putProperty(String.valueOf(n), selected.get(i)); |
|
330 |
n++; |
|
331 |
} |
|
321 |
if (selected!=null){ |
|
322 |
xml.putProperty("numBitSet",selected.cardinality()); |
|
323 |
int n=0; |
|
324 |
for (int i=0;i<selected.length();i++){ |
|
325 |
if (selected.get(i)){ |
|
326 |
xml.putProperty(String.valueOf(n),i); |
|
327 |
n++; |
|
332 | 328 |
} |
333 | 329 |
} |
334 | 330 |
|
... | ... | |
368 | 364 |
if (numBitSet!=0){ |
369 | 365 |
BitSet selected = new BitSet(); |
370 | 366 |
selected=new BitSet(); |
371 |
for(int i=0;i<numBitSet;i++){
|
|
367 |
for(int i=1;i<=numBitSet;i++){
|
|
372 | 368 |
selected.set(xml.getIntProperty(String.valueOf(i))); |
373 | 369 |
} |
374 | 370 |
selectionSupport.setSelection(selected); |
371 |
//sds.setSelectionSupport(selectionSupport); |
|
375 | 372 |
} |
376 | 373 |
//TODO source.setDriver(nameDriver); |
377 | 374 |
|
Also available in: Unified diff