Class DesktopProjectFactory
java.lang.Object
ca.phon.project.DefaultProjectFactory
ca.phon.app.project.DesktopProjectFactory
- All Implemented Interfaces:
ProjectFactory
Factory for cases where the Desktop paradigm is available. Desktop projects
will move contents to the Recycle Bin/Trash when removing corpora or sessions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProject(String projectLocation) Create project at the specified folder.openProject(String projectLocation) Open a project from the specified folder.
-
Constructor Details
-
DesktopProjectFactory
public DesktopProjectFactory()
-
-
Method Details
-
openProject
public Project openProject(String projectLocation) throws IOException, ProjectConfigurationException Description copied from class:DefaultProjectFactoryOpen a project from the specified folder.- Specified by:
openProjectin interfaceProjectFactory- Overrides:
openProjectin classDefaultProjectFactory- Parameters:
projectLocation-- 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
Description copied from class:DefaultProjectFactoryCreate project at the specified folder. The name of the project will automatically be set to the value of the final path element.- Specified by:
createProjectin interfaceProjectFactory- Overrides:
createProjectin classDefaultProjectFactory- Parameters:
projectLocation-- Throws:
IOException- if a problem occurs while trying to access/write to the given location
-