Package ca.phon.app.project
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
-
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
-
DesktopProjectFactory
public DesktopProjectFactory()
-
-
Method Details
-
openProject
Description copied from class:DefaultProjectFactory
Open a project from the specified folder.- Specified by:
openProject
in interfaceProjectFactory
- Overrides:
openProject
in classDefaultProjectFactory
- 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:DefaultProjectFactory
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
- Overrides:
createProject
in classDefaultProjectFactory
- Throws:
IOException
- if a problem occurs while trying to access/write to the given location
-