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

View differences:

ProjectExtension.java
470 470
				return false;
471 471
			}
472 472
		}
473
		NotificationManager.addInfo(PluginServices.getText(this,"writinng_project")+ ": "+file.getName());
473 474
		// write it out as XML
474 475
		try {
475 476
            FileOutputStream fos = new FileOutputStream(file.getAbsolutePath());
......
487 488
			setPath(file.toString());
488 489

  
489 490
		} catch (Exception e) {
490
			NotificationManager.addError("Error guardando el proyecto", e);
491
			NotificationManager.addError(PluginServices.getText(this,"error_writing_project")+ ": "+file.getName(), e);
491 492
			return false;
492 493
		}
494
		NotificationManager.addInfo(PluginServices.getText(this,"wrote_project")+ ": "+file.getName());
493 495
		return true;
494 496
	}
495 497

  
......
624 626
			XmlTag tag = (XmlTag) XmlTag.unmarshal(reader);
625 627
			XMLEntity xml=new XMLEntity(tag);
626 628
			String VERSION=xml.getStringProperty("VERSION");
629
			NotificationManager.addInfo(PluginServices.getText(this,"openning_project")+ ": "+xml.getStringProperty("name"));
627 630

  
628 631
			if (encodingFollowed) {
629 632
				if (xml.contains("followHeaderEncoding")) {
......
648 651
				}else{
649 652
					proj = Project.createFromXML03(new XMLEntity(tag));
650 653
				}
654
				NotificationManager.addInfo(PluginServices.getText(this,"opened_project")+ ": "+xml.getStringProperty("name"));
655

  
651 656
				return proj;
652 657
			} catch (OpenException e){
653 658
				e.showError();
......
662 667
			JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),PluginServices.getText(this, "formato_incorrecto"));
663 668
			//NotificationManager.addError("Al leer el proyecto", e);
664 669
		}
670
		NotificationManager.addInfo(PluginServices.getText(this,"error_openning_project"));
671

  
665 672
		return null;
666 673
	}
667 674

  

Also available in: Unified diff