Revision 692

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ProjectExtension.java
17 17
import org.exolab.castor.xml.ValidationException;
18 18

  
19 19
import com.iver.andami.PluginServices;
20
import com.iver.andami.messages.NotificationManager;
20 21
import com.iver.andami.plugins.Extension;
21 22
import com.iver.cit.gvsig.fmap.DriverException;
22 23
import com.iver.cit.gvsig.fmap.layers.XMLException;
......
127 128
    }
128 129

  
129 130
    private void escribirProyecto(File file, Project p){
130
            p.setPath(file.toString());
131
            p.setModificationDate(DateFormat.getDateInstance().format(new Date()));
132
            p.setModified(false);
133

  
134 131
            // write it out as XML
135 132
            try {
136 133
            	FileWriter writer = new FileWriter(file.getAbsolutePath());
137 134
            	Marshaller m = new Marshaller(writer);
138 135
            	m.setEncoding("ISO-8859-1");
139 136
            	m.marshal(p.getXMLEntity().getXmlTag());
137
                p.setPath(file.toString());
138
                p.setModificationDate(DateFormat.getDateInstance().format(new Date()));
139
                p.setModified(false);
140
                PluginServices.getMainFrame().setTitle("gvSIG: " + file.getName());
140 141
            } catch (Exception e) {
141
                System.out.println("Exception marshal Proyecto " + e);
142
                NotificationManager.addError("Error guardando el proyecto", e);
142 143
            }
143
            PluginServices.getMainFrame().setTitle("gvSIG: " + file.getName());
144 144
            projectFrame.refreshControls();
145 145
    }
146 146

  

Also available in: Unified diff