Revision 2419

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ProjectExtension.java
55 55
import org.exolab.castor.xml.MarshalException;
56 56
import org.exolab.castor.xml.Marshaller;
57 57
import org.exolab.castor.xml.ValidationException;
58
import org.xml.sax.SAXException;
59
import org.xml.sax.SAXParseException;
58 60

  
59 61
import com.iver.andami.Launcher;
60 62
import com.iver.andami.PluginServices;
......
152 154
		if (p.isModified()) {
153 155
			int res = JOptionPane.showConfirmDialog((Component) PluginServices.getMainFrame(),
154 156
					PluginServices.getText(this, "guardar_cambios"),
155
					PluginServices.getText(this, "nuevo_proyecto"),
157
					"gvSIG",
156 158
					JOptionPane.YES_NO_CANCEL_OPTION,
157 159
					JOptionPane.INFORMATION_MESSAGE);
158 160

  
......
268 270
				return proj;
269 271
			} catch (XMLException e) {
270 272
			} catch (DriverException e) {
271
			} catch (DriverIOException e2) {
273
			} catch (DriverIOException e) {
272 274
			} catch (NotExistInXMLEntity e){
273
			    
274
			}
275
			} 
275 276
			try {
276 277
                proj = Project.createFromXML03(new XMLEntity(tag));
277 278
    			return proj;
......
284 285
            }
285 286
			
286 287
		} catch (FileNotFoundException e) {
287
			NotificationManager.addError("Al leer el proyecto", e);
288
			JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),"fichero_incorrecto");
289
			//NotificationManager.addError("Al leer el proyecto", e);
288 290
		} catch (MarshalException e) {
289
			NotificationManager.addError("Al leer el proyecto", e);
291
			JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),"formato_incorrecto");
292
			//NotificationManager.addError("Al leer el proyecto", e);
290 293
		} catch (ValidationException e) {
291
			NotificationManager.addError("Al leer el proyecto", e);
292
		}
294
			JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),"formato_incorrecto");
295
			//NotificationManager.addError("Al leer el proyecto", e);
296
		} 
293 297
		
294 298
		return null;
295 299
	}

Also available in: Unified diff