Revision 37941
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/TableOperations.java | ||
---|---|---|
423 | 423 |
try { |
424 | 424 |
SelectableDataSource result = new SelectableDataSource(LayerFactory.getDataSourceFactory() |
425 | 425 |
.executeSQL(sql, |
426 |
DataSourceFactory.AUTOMATIC_OPENING));
|
|
426 |
DataSourceFactory.MANUAL_OPENING)); // Lo ponemos manual porque como autom?tico al final se crea un nombre no registrado
|
|
427 | 427 |
EditableAdapter auxea=new EditableAdapter(); |
428 | 428 |
auxea.setOriginalDataSource(result); |
429 | 429 |
String[] currentJoinedTables = sourceProjectTable.getJoinedTables(); |
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/TableRowsOperations.java | ||
---|---|---|
112 | 112 |
} |
113 | 113 |
|
114 | 114 |
if (v.getClass() == Table.class) { |
115 |
return true; |
|
115 |
Table table = (Table) v; |
|
116 |
|
|
117 |
try { |
|
118 |
return table.getModel().getModelo().getSelection().cardinality()>0; |
|
119 |
} catch (ReadDriverException e) { |
|
120 |
e.printStackTrace(); |
|
121 |
} |
|
116 | 122 |
} |
117 | 123 |
|
118 | 124 |
return false; |
Also available in: Unified diff