Revision 10666 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/table/ProjectTable.java
ProjectTable.java | ||
---|---|---|
88 | 88 |
* @author Fernando Gonz?lez Cort?s |
89 | 89 |
*/ |
90 | 90 |
public class ProjectTable extends ProjectDocument { |
91 |
public static int numTables = 0; |
|
91 |
//public static int numTables = 0;
|
|
92 | 92 |
|
93 | 93 |
private IEditableSource esModel; |
94 | 94 |
|
... | ... | |
322 | 322 |
XMLEntity xml = super.getXMLEntity(); |
323 | 323 |
try { |
324 | 324 |
// xml.putProperty("nameClass", this.getClass().getName()); |
325 |
int numTables=((Integer)ProjectDocument.NUMS.get(ProjectTableFactory.registerName)).intValue(); |
|
325 | 326 |
xml.putProperty("numTables", numTables); |
326 | 327 |
|
327 | 328 |
if (getLinkTable() != null) { |
... | ... | |
376 | 377 |
public void setXMLEntity03(XMLEntity xml) |
377 | 378 |
throws XMLException, DriverException, DriverIOException{ |
378 | 379 |
super.setXMLEntity03(xml); |
379 |
numTables = xml.getIntProperty("numTables"); |
|
380 |
int numTables = xml.getIntProperty("numTables"); |
|
381 |
ProjectDocument.NUMS.put(ProjectTableFactory.registerName,new Integer(numTables)); |
|
380 | 382 |
|
381 | 383 |
if (xml.getStringProperty("type").equals("otherDriverFile")) { |
382 | 384 |
LayerFactory.getDataSourceFactory().addFileDataSource( |
... | ... | |
434 | 436 |
try { |
435 | 437 |
super.setXMLEntity(xml); |
436 | 438 |
setName(xml.getStringProperty("name")); |
437 |
numTables = xml.getIntProperty("numTables"); |
|
439 |
int numTables = xml.getIntProperty("numTables"); |
|
440 |
ProjectDocument.NUMS.put(ProjectTableFactory.registerName,new Integer(numTables)); |
|
438 | 441 |
|
439 | 442 |
setSelectableDataSource(xml); |
440 | 443 |
|
Also available in: Unified diff