Revision 5390 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java
FLyrVect.java | ||
---|---|---|
63 | 63 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
64 | 64 |
import com.iver.cit.gvsig.fmap.drivers.VectorialDatabaseDriver; |
65 | 65 |
import com.iver.cit.gvsig.fmap.drivers.VectorialDriver; |
66 |
import com.iver.cit.gvsig.fmap.drivers.shp.IndexedShpDriver; |
|
66 | 67 |
import com.iver.cit.gvsig.fmap.edition.AnnotationEditableAdapter; |
67 | 68 |
import com.iver.cit.gvsig.fmap.edition.EditionEvent; |
68 | 69 |
import com.iver.cit.gvsig.fmap.edition.EditionException; |
... | ... | |
122 | 123 |
private SelectableDataSource sds; |
123 | 124 |
|
124 | 125 |
private SelectionSupport selectionSupport = new SelectionSupport(); |
125 |
|
|
126 |
|
|
126 | 127 |
private SpatialCache spatialCache = null; |
127 | 128 |
private boolean spatialCacheEnabled = true; |
128 | 129 |
|
... | ... | |
946 | 947 |
if (getSource() instanceof VectorialDBAdapter) { |
947 | 948 |
vea = new VectorialEditableDBAdapter(); |
948 | 949 |
} else if (this instanceof FLyrAnnotation) { |
949 |
/*if (getSource().getDriver() instanceof AddEventThemeDriver) { |
|
950 |
vea = new EventThemeAnnotationEditableAdapter( |
|
951 |
(FLyrAnnotation) this); |
|
952 |
} else {*/ |
|
953 |
vea = new AnnotationEditableAdapter( |
|
954 |
(FLyrAnnotation) this); |
|
955 |
//} |
|
956 |
} /*else if (getSource().getDriver() instanceof AddEventThemeDriver) { |
|
957 |
|
|
958 |
vea = new EventThemeEditableAdapter(); |
|
959 |
}*/ else { |
|
950 |
vea = new AnnotationEditableAdapter( |
|
951 |
(FLyrAnnotation) this); |
|
952 |
} else { |
|
960 | 953 |
vea = new VectorialEditableAdapter(); |
961 | 954 |
} |
962 | 955 |
vea.setOriginalVectorialAdapter(getSource()); |
... | ... | |
982 | 975 |
// Esto lo pongo para evitar que al dibujar sobre un |
983 | 976 |
// dxf, dwg, o dgn no veamos nada. Es debido al checkbox |
984 | 977 |
// de la leyenda de textos "dibujar solo textos". |
985 |
// if (ley.getDefaultSymbol() == null) |
|
986 |
{ |
|
978 |
if (!(getSource().getDriver() instanceof IndexedShpDriver)){ |
|
987 | 979 |
ley.setDefaultSymbol(new FSymbol(getShapeType())); |
988 |
ley.useDefaultSymbol(true); |
|
989 | 980 |
} |
981 |
ley.useDefaultSymbol(true); |
|
990 | 982 |
} |
991 | 983 |
} catch (DriverLoadException e) { |
992 | 984 |
e.printStackTrace(); |
Also available in: Unified diff