Package org.omegat.core.data
Class ProjectFactory
- java.lang.Object
-
- org.omegat.core.data.ProjectFactory
-
public final class ProjectFactory extends java.lang.Object
Factory for load project, create project, and create "not-loaded" project. TODO: change exception handling
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeProject()
Close current project.static void
createNotLoadedProject()
static void
createProject(ProjectProperties newProps)
Create new project.static boolean
loadProject(ProjectProperties props, boolean onlineMode)
Loads project in a "big" sense -- loads project's properties, glossaries, tms, source files etc.
-
-
-
Method Detail
-
createNotLoadedProject
public static void createNotLoadedProject()
-
createProject
public static void createProject(ProjectProperties newProps)
Create new project.
-
loadProject
public static boolean loadProject(ProjectProperties props, boolean onlineMode)
Loads project in a "big" sense -- loads project's properties, glossaries, tms, source files etc.- Parameters:
props
- properties for new project- Returns:
- whether the project was successfully loaded or not
-
closeProject
public static void closeProject()
Close current project.
-
-