Package org.omegat.gui.main
Class ProjectUICommands
- java.lang.Object
-
- org.omegat.gui.main.ProjectUICommands
-
public final class ProjectUICommands extends java.lang.ObjectHandler for project UI commands, like open, save, compile, etc.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddoPromptImportSourceFiles()Imports the file/files/folder into project's source files.static voiddoWikiImport()Does wikireadstatic voidprojectClose()Close project.static voidprojectCommitSourceFiles()static voidprojectCompile()static voidprojectCompileAndCommit()static voidprojectCreate()static voidprojectCreateMED()static voidprojectEditProperties()static voidprojectImportFiles(java.lang.String destination, java.io.File[] toImport)Copy the specified files to the specified destination.static voidprojectImportFiles(java.lang.String destination, java.io.File[] toImport, boolean doReload)Copy the specified files to the specified destination, then reload if indicated.static voidprojectOpen(java.io.File projectDirectory)Open project.static voidprojectOpen(java.io.File projectDirectory, boolean closeCurrent)Open project.static voidprojectOpenMED()static voidprojectReload()Project reload.static voidprojectRemote(java.lang.String url)Open remote project specified by url.static voidprojectSave()Save project.static voidprojectSingleCompile(java.lang.String sourcePattern)static voidprojectTeamCreate()static voidpromptReload()Prompt the user to reload the current project
-
-
-
Method Detail
-
projectCreate
public static void projectCreate()
-
projectOpenMED
public static void projectOpenMED()
-
projectCreateMED
public static void projectCreateMED()
-
projectTeamCreate
public static void projectTeamCreate()
-
projectOpen
public static void projectOpen(java.io.File projectDirectory)
Open project. Does nothing if there is already a project open. Convenience method forprojectOpen(File, boolean).- Parameters:
projectDirectory- Open project stored in projectDirectory
-
projectOpen
public static void projectOpen(java.io.File projectDirectory, boolean closeCurrent)Open project. Does nothing if a project is already open and closeCurrent is false.- Parameters:
projectDirectory- project directory or null if user must choose itcloseCurrent- whether to close the current project first, if any
-
promptReload
public static void promptReload()
Prompt the user to reload the current project
-
projectReload
public static void projectReload()
Project reload.When select Project>Reload jump to here.
-
projectSave
public static void projectSave()
Save project.When the project is a team project, it also commit files and push to remote.
-
projectClose
public static void projectClose()
Close project.When the project is a team project, it commits and push first.
-
projectEditProperties
public static void projectEditProperties()
-
projectCompile
public static void projectCompile()
-
projectSingleCompile
public static void projectSingleCompile(java.lang.String sourcePattern)
-
projectCompileAndCommit
public static void projectCompileAndCommit()
-
projectCommitSourceFiles
public static void projectCommitSourceFiles()
-
projectRemote
public static void projectRemote(java.lang.String url)
Open remote project specified by url.- Parameters:
url- remote project repository.
-
projectImportFiles
public static void projectImportFiles(java.lang.String destination, java.io.File[] toImport)Copy the specified files to the specified destination. The project will be reloaded afterward.Convenience method for
projectImportFiles(String, File[], boolean).- Parameters:
destination- The path to copy the files totoImport- Files to copy to destination path
-
projectImportFiles
public static void projectImportFiles(java.lang.String destination, java.io.File[] toImport, boolean doReload)Copy the specified files to the specified destination, then reload if indicated. Note that a modal dialog will be shown if any of the specified files would be overwritten.- Parameters:
destination- The path to copy the files totoImport- Files to copy to destination pathdoReload- If true, the project will be reloaded after the files are successfully copied
-
doPromptImportSourceFiles
public static void doPromptImportSourceFiles()
Imports the file/files/folder into project's source files.
-
doWikiImport
public static void doWikiImport()
Does wikiread
-
-