Changes between Version 5 and Version 6 of ProjectFileHandler
- Timestamp:
- 10/23/2015 11:41:53 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProjectFileHandler
v5 v6 6 6 * projectEntry or 7 7 * 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. 9 10 10 11 === loadProject(String projectName)=== … … 17 18 * throws IOException if one of the existing files could not be read 18 19 * 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 19 27 20 28 === 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. 23 30 * 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. 24 32 25 33 === renameEntryInProject(Entry entryToBeRenamed, String newName) === … … 32 40 33 41 === deleteEntryFromProject(Entry childEntry) === 34 * removes the entry contentfrom the project and re-writes the ".project.xml" file35 * throws File NotFoundException if the ''project'' folder or ".project.xml" file is missing42 * 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 36 44 * throws IOException if ".project.xml" file could not be read 37 45 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