createProjectDefaultFile(project, projectFile);
if (handler instanceof SSHDataHandler) {
((SSHDataHandler) handler).copyToServer(projectFile);
}
}
IXMLReader projectReader = new XMLSAXReader(projectFile,
new ProjectReaderHandler(project));
URL schemaURL = this.getClass().getResource(
JSimConstants.PROJECTSCHEMAFILE);
try {
projectReader.readXML(schemaURL.toString());
} catch (Exception e) {
JOptionPane.showMessageDialog(frame, e.getMessage(),
"Load error", JOptionPane.ERROR_MESSAGE);
e.printStackTrace();
}