Revision 9690 trunk/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 |
|
... | ... | |
321 | 321 |
XMLEntity xml = super.getXMLEntity(); |
322 | 322 |
try { |
323 | 323 |
// xml.putProperty("nameClass", this.getClass().getName()); |
324 |
int numTables=((Integer)ProjectDocument.NUMS.get(ProjectTableFactory.registerName)).intValue(); |
|
325 |
|
|
324 | 326 |
xml.putProperty("numTables", numTables); |
325 | 327 |
|
326 | 328 |
if (getLinkTable() != null) { |
... | ... | |
375 | 377 |
public void setXMLEntity03(XMLEntity xml) |
376 | 378 |
throws XMLException, DriverException, DriverIOException{ |
377 | 379 |
super.setXMLEntity03(xml); |
378 |
numTables = xml.getIntProperty("numTables"); |
|
380 |
int numTables = xml.getIntProperty("numTables"); |
|
381 |
ProjectDocument.NUMS.put(ProjectTableFactory.registerName,new Integer(numTables)); |
|
379 | 382 |
|
380 | 383 |
if (xml.getStringProperty("type").equals("otherDriverFile")) { |
381 | 384 |
LayerFactory.getDataSourceFactory().addFileDataSource( |
... | ... | |
433 | 436 |
try { |
434 | 437 |
super.setXMLEntity(xml); |
435 | 438 |
setName(xml.getStringProperty("name")); |
436 |
numTables = xml.getIntProperty("numTables"); |
|
439 |
int numTables = xml.getIntProperty("numTables"); |
|
440 |
ProjectDocument.NUMS.put(ProjectTableFactory.registerName,new Integer(numTables)); |
|
437 | 441 |
|
438 | 442 |
setSelectableDataSource(xml); |
439 | 443 |
|
Also available in: Unified diff