UserPreferences.getUserPreferences().useProject(file.getPath()); rebuildRecentProjectsMenu();
    private void openProjectItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openProjectItemActionPerformed                if (!closeProjectHook(getCurrentProject(), "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);        } catch (IOException e) {            logger.logMessage(ConsoleLogger.ERROR, "Could not open project: " + e.getMessage());        }    }//GEN-LAST:event_openProjectItemActionPerformed