Package ca.phon.project
Class DefaultProjectFactory
java.lang.Object
ca.phon.project.DefaultProjectFactory
- All Implemented Interfaces:
ProjectFactory
- Direct Known Subclasses:
DesktopProjectFactory
Default project factory implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateProject
(File projectFolder) Create project at the specified folder.openProject
(File projectFolder) Open a project from the specified folder.
-
Constructor Details
-
DefaultProjectFactory
public DefaultProjectFactory()
-
-
Method Details
-
openProject
Open a project from the specified folder.- Specified by:
openProject
in interfaceProjectFactory
- Parameters:
projectFolder
-- Throws:
IOException
- if the given file object is not a folder or does not existProjectConfigurationException
- if the given folder is not a phon project
-
createProject
Create project at the specified folder. The name of the project will automatically be set to the value of the final path element.- Specified by:
createProject
in interfaceProjectFactory
- Parameters:
projectFolder
-- Throws:
IOException
- if a problem occurs while trying to access/write to the given location
-