DefaultMutableTreeNode projectNode = (DefaultMutableTreeNode) navigatorTree.getSelectionPath().getPath()[1]; navigatorTreeModel.nodeChanged(projectNode);
    private void saveProjectItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveProjectItemActionPerformed        try {            Project project = getCurrentProject();            if (project == null)                return;                        File file;            String fileName = project.getFileName();            if (!fileName.startsWith("<")) {                file = new File(fileName);            } else {                JFileChooser chooser = new JFileChooser();                chooser.setFileFilter(projectFileFilter);                int result = chooser.showSaveDialog(this);                if (result == JFileChooser.CANCEL_OPTION)                    return;                file = chooser.getSelectedFile();                project.setFileName(file.getPath());            }                        FileOutputStream out = new FileOutputStream(file);            project.write(out);            logger.logMessage(ConsoleLogger.INFO, "Project saved");                        // Project filename may have changed, so update the node in            // the navigator tree            DefaultMutableTreeNode projectNode = (DefaultMutableTreeNode)                navigatorTree.getSelectionPath().getPath()[1];            navigatorTreeModel.nodeChanged(projectNode);        } catch (IOException e) {            logger.logMessage(ConsoleLogger.ERROR, "Could not save project: " + e.getMessage());        }    }//GEN-LAST:event_saveProjectItemActionPerformed