Revision 10666 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/ProjectMap.java

View differences:

ProjectMap.java
66 66

  
67 67

  
68 68
/**
69
 * DOCUMENT ME!
69
 * Modelo del Layout.
70 70
 *
71 71
 * @author Fernando Gonz?lez Cort?s
72 72
 */
73 73
public class ProjectMap extends ProjectDocument {
74
	public static int numMaps = 0;
74
	//public static int numMaps = 0;
75 75
	private Layout model;
76 76

  
77 77
	/**
......
115 115
		XMLEntity xml = super.getXMLEntity();
116 116
		try{
117 117
		//xml.putProperty("nameClass", this.getClass().getName());
118
		int numMaps=((Integer)ProjectDocument.NUMS.get(ProjectMapFactory.registerName)).intValue();
118 119
		xml.putProperty("numMaps", numMaps);
119 120
		xml.addChild(model.getXMLEntity());
120 121
		}catch (Exception e) {
......
130 131
	public void setXMLEntity(XMLEntity xml) throws OpenException {
131 132
		try {
132 133
			super.setXMLEntity(xml);
133
			numMaps = xml.getIntProperty("numMaps");
134
			int numMaps=xml.getIntProperty("numMaps");
135
			ProjectDocument.NUMS.put(ProjectMapFactory.registerName,new Integer(numMaps));
134 136
			for (int i=0; i<xml.getChildrenCount(); i++)
135 137
			{
136 138
				XMLEntity child = xml.getChild(i);
......
154 156
		throws XMLException, DriverException, DriverIOException{
155 157

  
156 158
		super.setXMLEntity03(xml);
157
		numMaps = xml.getIntProperty("numMaps");
159
		int numMaps=xml.getIntProperty("numMaps");
160
		ProjectDocument.NUMS.put(ProjectMapFactory.registerName,new Integer(numMaps));
158 161
		model = Layout.createLayout03(xml.getChild(0), getProject());
159 162
	}
160 163

  

Also available in: Unified diff