Revision 3424

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/Project.java
555 555
		   xml.putProperty("extentsW", ws);
556 556
		   xml.putProperty("extentsH", hs);
557 557
		 */
558
		xml.putProperty("numViews", views.size());
559

  
558
		
559
		int numViews=0;
560 560
		for (int i = 0; i < views.size(); i++) {
561 561
			try {
562
				xml.addChild(((ProjectView) views.get(i)).getXMLEntity());
562
				XMLEntity xmlchild=((ProjectView) views.get(i)).getXMLEntity();
563
				xml.addChild(xmlchild);
564
				numViews++;
563 565
			} catch (SaveException e) {
564 566
				e.showError();
565 567
			}
566 568
		}
567

  
568
		xml.putProperty("numMaps", maps.size());
569

  
569
		xml.putProperty("numViews", numViews);
570
		
571
		int numMaps=0;
570 572
		for (int i = 0; i < maps.size(); i++) {
571 573
			try {
572
				xml.addChild(((ProjectMap) maps.get(i)).getXMLEntity());
574
				XMLEntity xmlchild=((ProjectMap) maps.get(i)).getXMLEntity();
575
				xml.addChild(xmlchild);
576
				numMaps++;
573 577
			} catch (SaveException e) {
574 578
				e.showError();
575 579
			}
576 580
		}
577

  
581
		xml.putProperty("numMaps", numMaps);
578 582
		xml.putProperty("modificationDate", modificationDate);
579 583
		xml.putProperty("modified", modified);
580 584
		xml.putProperty("name", name);
......
582 586
		xml.putProperty("path", path);
583 587
		xml.putProperty("selectionColor",
584 588
			StringUtilities.color2String(selectionColor));
585
		xml.putProperty("numTables", tables.size());
586

  
589
		
590
		int numTables=0;
587 591
		for (int i = 0; i < tables.size(); i++) {
588 592
			try {
589
				xml.addChild(((ProjectTable) tables.get(i)).getXMLEntity());
593
				XMLEntity xmlchild=((ProjectTable) tables.get(i)).getXMLEntity();
594
				xml.addChild(xmlchild);
595
				numTables++;
590 596
			} catch (SaveException e) {
597
				
591 598
				e.showError();
592 599
			}
593 600
		}
594

  
601
		xml.putProperty("numTables", numTables);
595 602
		xml.putProperty("projection", defaultProjection.getAbrev());
596 603

  
597 604
		return xml;

Also available in: Unified diff