Revision 4256 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/SelectedZoomVisitor.java
SelectedZoomVisitor.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package com.iver.cit.gvsig.fmap.operations.strategies; |
42 | 42 |
|
43 |
import com.iver.cit.gvsig.fmap.DriverException; |
|
43 | 44 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
44 | 45 |
import com.iver.cit.gvsig.fmap.layers.FBitSet; |
45 | 46 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
46 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.Selectable;
|
|
47 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.AlphanumericData;
|
|
47 | 48 |
|
48 | 49 |
import java.awt.geom.Rectangle2D; |
49 | 50 |
|
... | ... | |
65 | 66 |
* @return True si se inicializa correctamente. |
66 | 67 |
*/ |
67 | 68 |
public boolean start(FLayer layer) { |
68 |
if (layer instanceof Selectable) { |
|
69 |
bitset = ((Selectable) layer).getSelection(); |
|
69 |
if (layer instanceof AlphanumericData) {//TODO Esta comprobaci?n se hacia con Selectable |
|
70 |
try { |
|
71 |
bitset = ((AlphanumericData) layer).getRecordset().getSelection(); |
|
72 |
} catch (DriverException e) { |
|
73 |
e.printStackTrace(); |
|
74 |
} |
|
70 | 75 |
|
71 | 76 |
return true; |
72 | 77 |
} |
Also available in: Unified diff