Revision 1837 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ProjectExtension.java

View differences:

ProjectExtension.java
122 122
			guardarDialogo();
123 123
		} else {
124 124
			escribirProyecto(new File(p.getPath()), p);
125
			projectFrame.refreshControls();
125 126
		}
126 127
	}
127 128
	private void guardarDialogo(){
......
135 136
				file=new File(file.getPath()+".gvp");
136 137
			}
137 138
			escribirProyecto(file, p);
139
			projectFrame.refreshControls();
138 140
		}
139 141
	}
140 142
	/**
......
214 216
	 * @param file Fichero.
215 217
	 * @param p Proyecto.
216 218
	 */
217
	private void escribirProyecto(File file, Project p) {
219
	public void escribirProyecto(File file, Project p) {
218 220
		// write it out as XML
219 221
		try {
220 222
			FileWriter writer = new FileWriter(file.getAbsolutePath());
......
230 232
			NotificationManager.addError("Error guardando el proyecto", e);
231 233
		}
232 234

  
233
		projectFrame.refreshControls();
234 235
	}
235 236

  
236 237
	/**
......
249 250
			reader = new FileReader(xmlFile);
250 251

  
251 252
			XmlTag tag = (XmlTag) XmlTag.unmarshal(reader);
252
			p = Project.createFromXML(new XMLEntity(tag));
253
			proj = Project.createFromXML(new XMLEntity(tag));
253 254
		} catch (FileNotFoundException e) {
254 255
			NotificationManager.addError("Al leer el proyecto", e);
255 256
		} catch (MarshalException e) {

Also available in: Unified diff