Revision 4256 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/SelectedShapeVisitor.java
SelectedShapeVisitor.java | ||
---|---|---|
79 | 79 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor#start(com.iver.cit.gvsig.fmap.layers.FLayer) |
80 | 80 |
*/ |
81 | 81 |
public boolean start(FLayer layer) { |
82 |
if (layer instanceof AlphanumericData && layer instanceof Selectable) {
|
|
82 |
if (layer instanceof AlphanumericData) { |
|
83 | 83 |
try { |
84 | 84 |
sds = ((AlphanumericData) layer).getRecordset(); |
85 | 85 |
} catch (DriverException e) { |
86 | 86 |
e.printStackTrace(); |
87 | 87 |
} |
88 |
bitset = ((Selectable) layer).getSelection(); |
|
88 |
try { |
|
89 |
bitset = ((AlphanumericData) layer).getRecordset().getSelection(); |
|
90 |
} catch (DriverException e) { |
|
91 |
e.printStackTrace(); |
|
92 |
} |
|
89 | 93 |
|
90 | 94 |
return true; |
91 | 95 |
} |
92 |
|
|
93 | 96 |
return false; |
94 | 97 |
|
95 | 98 |
} |
Also available in: Unified diff