src/java/com/mammen/main/MainUIModel.java
/**
     * Saves the project in XML format.
     */
Saves the project in XML format.
Saves the project in XML format .
public void saveProjectAs( File path ) throws ParserConfigurationException
    {
        if( !path.getAbsolutePath().endsWith("." + PROJECT_EXTENSION ) )
            path = new File(path + "." + PROJECT_EXTENSION );
        File dir = path.getParentFile();
        if( dir != null && !dir.exists() && dir.isDirectory() )
        {
            if (!dir.mkdirs())
                return;
        }
        if( path.exists() && !path.delete() )
            return;
        workingProject = path;
        saveWorkingProject();
    }
public void saveProjectAs ( File path ) throws ParserConfigurationException { if ( ! path . getAbsolutePath ( ) . endsWith ( "." + PROJECT_EXTENSION ) ) path = new File ( path + "." + PROJECT_EXTENSION ) ; File dir = path . getParentFile ( ) ; if ( dir != null && ! dir . exists ( ) && dir . isDirectory ( ) ) { if ( ! dir . mkdirs ( ) ) return ; } if ( path . exists ( ) && ! path . delete ( ) ) return ; workingProject = path ; saveWorkingProject ( ) ; }
Saves the project in XML format.
Saves the project in XML format .