Revision 4455 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/ProjectTable.java
ProjectTable.java | ||
---|---|---|
51 | 51 |
import com.hardcode.gdbms.engine.data.DataSourceFactory; |
52 | 52 |
import com.hardcode.gdbms.engine.data.NoSuchTableException; |
53 | 53 |
import com.hardcode.gdbms.engine.data.driver.ObjectDriver; |
54 |
import com.hardcode.gdbms.engine.instruction.FieldNotFoundException; |
|
55 | 54 |
import com.hardcode.gdbms.engine.instruction.SemanticException; |
56 | 55 |
import com.hardcode.gdbms.parser.ParseException; |
57 | 56 |
import com.iver.andami.PluginServices; |
... | ... | |
64 | 63 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
65 | 64 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
66 | 65 |
import com.iver.cit.gvsig.fmap.layers.SelectableDataSource; |
66 |
import com.iver.cit.gvsig.fmap.layers.VectorialAdapter; |
|
67 | 67 |
import com.iver.cit.gvsig.fmap.layers.XMLException; |
68 | 68 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.AlphanumericData; |
69 | 69 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.SingleLayer; |
... | ... | |
220 | 220 |
{ |
221 | 221 |
if (associatedTable instanceof FLyrVect) |
222 | 222 |
{ |
223 |
try { |
|
224 |
((EditableAdapter)((FLyrVect) associatedTable).getSource()).setRecordSet((SelectableDataSource)es.getRecordset()); |
|
225 |
} catch (DriverLoadException e) { |
|
226 |
// TODO Auto-generated catch block |
|
227 |
e.printStackTrace(); |
|
228 |
} |
|
229 |
|
|
230 |
((FLyrVect) associatedTable).setIsJoined(true); |
|
223 |
try { |
|
224 |
// ((EditableAdapter)((FLyrVect) associatedTable).getSource()).setRecordSet((SelectableDataSource)es.getRecordset()); |
|
225 |
FLyrVect lyrVect = (FLyrVect) associatedTable; |
|
226 |
lyrVect.setRecordset(es.getRecordset()); |
|
227 |
((FLyrVect) associatedTable).setIsJoined(true); |
|
228 |
} catch (DriverLoadException e) { |
|
229 |
// TODO Auto-generated catch block |
|
230 |
e.printStackTrace(); |
|
231 |
} |
|
231 | 232 |
} |
232 | 233 |
} |
233 | 234 |
|
... | ... | |
273 | 274 |
} |
274 | 275 |
|
275 | 276 |
|
276 |
((EditableAdapter)lyr.getSource()).setRecordSet((SelectableDataSource)original.getRecordset());
|
|
277 |
lyr.setRecordset((SelectableDataSource)original.getRecordset());
|
|
277 | 278 |
|
278 | 279 |
lyr.setIsJoined(false); |
279 | 280 |
} |
Also available in: Unified diff