logger.logMessage(ConsoleLogger.ERROR, MessageFormat.format( L10N.getLocalString("msg.couldnotopenproject_txt", "Could not open project: {0}"), new Object[]{e.getMessage()}));
logger.logMessage(Logger.ERROR, MessageFormat.format( L10N.getLocalString("msg.couldnotopenproject_txt", "Could not open project: {0}"), new Object[]{e.getMessage()}));
	private void openProjectItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openProjectItemActionPerformed		if (!closeProjectHook(getCurrentProject(), L10N.getLocalString("msg.openproject_txt", "Open Project")))			return;		JFileChooser chooser = createFileChooser();		chooser.setFileFilter(projectFileFilter);		int result = chooseFileToOpen(chooser);		if (result == JFileChooser.CANCEL_OPTION)			return;		try {			File file = chooser.getSelectedFile();			Project project = new Project();			project.read(file.getPath());			setProject(project);			UserPreferences.getUserPreferences().useProject(file.getPath());			rebuildRecentProjectsMenu();		} catch (IOException e) {			logger.logMessage(ConsoleLogger.ERROR, MessageFormat.format( L10N.getLocalString("msg.couldnotopenproject_txt", "Could not open project: {0}"), new Object[]{e.getMessage()}));		}	}//GEN-LAST:event_openProjectItemActionPerformed