addProject(project);
setProject(project);
    private void openProjectItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openProjectItemActionPerformed        JFileChooser chooser = new JFileChooser();        chooser.setFileFilter(projectFileFilter);        int result = chooser.showOpenDialog(this);        if (result == JFileChooser.CANCEL_OPTION)            return;        try {            File file = chooser.getSelectedFile();            Project project = new Project(file.getPath());            FileInputStream in = new FileInputStream(file);            project.read(in);            addProject(project);        } catch (IOException e) {            logger.logMessage(ConsoleLogger.ERROR, "Could not open project: " + e.getMessage());        }    }//GEN-LAST:event_openProjectItemActionPerformed