Revision 30335 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/layers/FactoryLayerEdited.java
FactoryLayerEdited.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
4 | 4 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
5 |
import org.gvsig.fmap.mapcontrol.MapControl; |
|
5 | 6 |
|
6 | 7 |
public class FactoryLayerEdited { |
7 | 8 |
|
8 |
public static ILayerEdited createLayerEdited(FLayer lyr) { |
|
9 |
public static ILayerEdited createLayerEdited(FLayer lyr, MapControl mapCtrl) {
|
|
9 | 10 |
if (lyr instanceof FLyrVect) |
10 |
return new VectorialLayerEdited(lyr); |
|
11 |
return new VectorialLayerEdited(lyr, mapCtrl);
|
|
11 | 12 |
return null; |
12 | 13 |
} |
13 | 14 |
|
Also available in: Unified diff