Revision 3981 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java
FLyrVect.java | ||
---|---|---|
73 | 73 |
import com.iver.cit.gvsig.fmap.drivers.VectorialDatabaseDriver; |
74 | 74 |
import com.iver.cit.gvsig.fmap.drivers.VectorialDriver; |
75 | 75 |
import com.iver.cit.gvsig.fmap.edition.EditableAdapter; |
76 |
import com.iver.cit.gvsig.fmap.edition.VectorialEditableAdapter; |
|
76 | 77 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.AlphanumericData; |
77 | 78 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableVectorial; |
78 | 79 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.Labelable; |
... | ... | |
558 | 559 |
// TODO Auto-generated catch block |
559 | 560 |
// e1.printStackTrace(); |
560 | 561 |
//} |
561 |
|
|
562 |
if (source instanceof VectorialEditableAdapter){ |
|
563 |
source=((VectorialEditableAdapter)source).getOriginalAdapter(); |
|
564 |
} |
|
562 | 565 |
if (source instanceof VectorialFileAdapter) { |
563 | 566 |
xml.putProperty("type", "vectorial"); |
564 | 567 |
xml.putProperty("file", ((VectorialFileAdapter) source).getFile()); |
... | ... | |
674 | 677 |
SelectableDataSource sds=new SelectableDataSource(LayerFactory.getDataSourceFactory() |
675 | 678 |
.createRandomDataSource(recordsetName, DataSourceFactory.AUTOMATIC_OPENING)); |
676 | 679 |
//sds.setSelectionSupport(selectionSupport); |
677 |
((EditableAdapter)getSource()).setRecordSet(sds); |
|
680 |
//((EditableAdapter)getSource()).setRecordSet(sds);
|
|
678 | 681 |
} catch (NoSuchTableException e1) { |
679 | 682 |
throw new XMLException(e1); |
680 | 683 |
} catch (com.hardcode.gdbms.engine.data.driver.DriverException e1) { |
Also available in: Unified diff