reloadProjectItem.setEnabled(hasProject);
reloadProjectItem.setEnabled(hasProject && !getCurrentProject().getFileName().equals( Project.UNNAMED_PROJECT ));
    private void fileMenuMenuSelected(javax.swing.event.MenuEvent evt) {//GEN-FIRST:event_fileMenuMenuSelected        // Save and close project items are only enabled if there is a project open.        boolean hasProject = getCurrentProject() != null;        saveProjectItem.setEnabled(hasProject);        saveProjectAsItem.setEnabled(hasProject);        reloadProjectItem.setEnabled(hasProject);        closeProjectItem.setEnabled(hasProject);        // Save bugs is only enabled if there is a current analysis run        boolean hasAnalysisRun = currentAnalysisRun != null;        saveBugsItem.setEnabled(hasAnalysisRun);    }//GEN-LAST:event_fileMenuMenuSelected