Revision 1271

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ProjectExtension.java
127 127
	}
128 128
	private void guardarDialogo(){
129 129
		JFileChooser jfc = new JFileChooser();
130
		jfc.addChoosableFileFilter(new GenericFileFilter("xml",
130
		jfc.addChoosableFileFilter(new GenericFileFilter("gvp",
131 131
				PluginServices.getText(this, "tipo_fichero_proyecto")));
132 132

  
133 133
		if (jfc.showSaveDialog((Component) PluginServices.getMainFrame()) == JFileChooser.APPROVE_OPTION) {
134 134
			File file=jfc.getSelectedFile();
135
			if (!(file.getPath().endsWith(".xml") || file.getPath().endsWith(".XML"))){
136
				file=new File(file.getPath()+".xml");
135
			if (!(file.getPath().endsWith(".gvp") || file.getPath().endsWith(".GVP"))){
136
				file=new File(file.getPath()+".gvp");
137 137
			}
138 138
			escribirProyecto(file, p);
139 139
		}
......
186 186
			}
187 187

  
188 188
			JFileChooser jfc = new JFileChooser();
189
			jfc.addChoosableFileFilter(new GenericFileFilter("xml",
189
			jfc.addChoosableFileFilter(new GenericFileFilter("gvp",
190 190
					PluginServices.getText(this, "tipo_fichero_proyecto")));
191 191

  
192 192
			if (jfc.showOpenDialog((Component) PluginServices.getMainFrame()) == JFileChooser.APPROVE_OPTION) {

Also available in: Unified diff