Changes between Version 5 and Version 6 of ProjectFileHandler


Ignore:
Timestamp:
10/23/2015 11:41:53 PM (7 years ago)
Author:
shan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProjectFileHandler

    v5 v6  
    66 * projectEntry or
    77 * null if projectNameis null (and does not create files or folder)
    8 * throws FileAlreadyExistsException when ''project'' folder or ".project.xml" file already exists
     8* throws FileAlreadyExistsException  when ''project'' folder with this name and (or) its ".project.xml" file already exists.
     9* throws IOException if i/o error happens while writing ".project.xml" file.
    910
    1011=== loadProject(String projectName)===
     
    1718* throws IOException if one of the existing files could not be read
    1819* throws UnsupportedVersionException if the content of ".project.xml" file has child elements with version that are no longer supported in current version
     20* throws MissingReaderException if some of the entry cannot be read from the current readers
     21
     22=== loadPartialProject(String projectName) ===
     23* loads a project entry (closed project without its children) from the .project.xml file, reads it through ProjectFileReader in partialReadMode
     24* creates "project_details.xml" file with default values, if this file does not exist
     25* throws FileNotFoundException if the ''project'' folder or ".project.xml" file is missing
     26* throws IOException if one of the existing files could not be read
    1927
    2028=== saveProject(Entry projectEntry) ===
    21 * saves project.xml file and project_details.xml file with the entry content and re-writes the ".project.xml" file
    22 * creates "project_details.xml" file with default values, if this file does not exist
     29* It saves ".project.xml" file and "project_details.xml" file with the entry content and re-writes both the files. It creates "project_details.xml" file with default values, if this file does not exist.
    2330* throws FileNotFoundException if the ''project'' folder or ".project.xml" file is missing
     31* throws IOException if i/o error happens while writing ".project.xml" file.
    2432
    2533=== renameEntryInProject(Entry entryToBeRenamed, String newName) ===
     
    3240
    3341=== deleteEntryFromProject(Entry childEntry) ===
    34 * removes the entry content from the project and re-writes the ".project.xml" file
    35 * throws FileNotFoundException if the ''project'' folder or ".project.xml" file is missing
     42* It removes the child entry from the project and re-writes the ".project.xml" file
     43* throws FileAlreadyExistsException if the ''project'' folder or ".project.xml" file is missing
    3644* throws IOException if ".project.xml" file could not be read
    3745
    38 === deleteProject(Entry projectEntry) ===
    39 * removes ProjectEntry from the workspace.xml file, deletes its ".project.xml" and other existing files from the workspace if they exist
    40 * throws IOException if "workspace.xml" file could not be read
     46=== deleteEntryFromProject(String projectName, String entryId) ===
     47* It removes the child entry from the project and re-writes the ".project.xml" file
     48* throws FileAlreadyExistsException if the ''project'' folder or ".project.xml" file is missing
     49* throws IOException if ".project.xml" file could not be read