CoreMessages.getString("ProbeMakerPlugIn.MESSAGE_DEFAULT_SETTINGS_NOT_READ"), //$NON-NLS-1$
iox);
}
}
final Project newp = new Project(name);
newp.setSettings(s);
//If template was selected, get template properties
if (template != null) {
final String fileName = template.getSettingsFileName();
if (fileName == null || fileName.length() == 0) {
platform.getUI().sendMessage("No settings file set for this template. Using default settings.", "No settings file", PlatformUI.NO_QUERY);
}
else {
final File f = new File(fileName);
try {
final Reader in = new FileReader(f);
newp.setSettings(SettingsIO.inputSettings(in));
}
catch (final FileNotFoundException e) {
platform.handleError("Template settings file not found: " + f.getAbsolutePath(),e); //$NON-NLS-1$
}
catch (final Exception e) {