|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.umlv.unitex.Config
public class Config
This class contains general configuration information. It contains constants used by many other classes.
Field Summary | |
---|---|
static java.lang.String |
CORPUS_TOO_LARGE_MESSAGE
Message shown chen a text file is too large to be loaded. |
static java.lang.String |
EMPTY_FILE_MESSAGE
Empty file error message. |
static java.lang.String |
ERROR_WHILE_READING_FILE_MESSAGE
File reading error message. |
static java.lang.String |
FILE_TOO_LARGE_MESSAGE
|
static int |
LINUX_SYSTEM
|
static int |
MAC_OS_X_SYSTEM
|
static int |
MAXIMUM_UTTERANCE_NUMBER_TO_DISPLAY_WITH_JAVA
Limit over which the concordance should be viewed with a web navigator |
static java.lang.String |
optionFieldTmp
|
static int |
SUN_OS_SYSTEM
|
static int |
WINDOWS_SYSTEM
|
Constructor Summary | |
---|---|
Config()
|
Method Summary | |
---|---|
static void |
changeLanguage()
Shows a dialog box that offers to the user to change the language he works on. |
static void |
changeUserDir()
Asks for the user to change his private directory. |
static void |
chooseInitialLanguage()
Shows a dialog box that offers to the user to choose the initial language he wants to work on |
static void |
chooseNewUserDir()
Asks for the user to select his private directory. |
static void |
copyDirRec(java.io.File src,
java.io.File dest)
Copies a directory recursively. |
static void |
copyFile(java.io.File src,
java.io.File dest)
Copy one file. |
static void |
copyFileByName(java.io.File src,
java.io.File dest)
Copies files. |
static void |
deleteFileByName(java.io.File src)
Deletes files. |
static void |
determineCurrentUser()
Finds the user's name. |
static void |
determineUnitexDir()
Finds the path of the Unitex directory. |
static void |
determineWhichSystemIsRunning()
Finds which operating system is used. |
static java.io.File |
getAlphabet()
|
static java.io.File |
getApplicationDir()
|
static javax.swing.JFileChooser |
getCorpusDialogBox()
|
static java.io.File |
getCurrentCorpusDir()
|
static java.io.File |
getCurrentDELA()
|
static java.io.File |
getCurrentElagDir()
|
static java.io.File |
getCurrentGraphDir()
|
static java.lang.String |
getCurrentLanguage()
|
static java.io.File |
getCurrentReplaceGraph()
|
static java.io.File |
getCurrentSentenceGraph()
|
static java.io.File |
getCurrentSnt()
|
static java.io.File |
getCurrentSntDir()
|
static int |
getCurrentSystem()
|
static java.lang.String |
getCurrentSystemName()
|
static java.awt.Font |
getCurrentTextFont()
|
static javax.swing.JFileChooser |
getDelaDialogBox()
|
static javax.swing.JFileChooser |
getDevDialogBox()
|
static javax.swing.JFileChooser |
getFileEditionDialogBox()
|
static javax.swing.JFileChooser |
getFst2UnambigDialogBox()
|
static javax.swing.JFileChooser |
getGraphDialogBox()
|
static javax.swing.JFileChooser |
getGrfAndFst2DialogBox()
|
static javax.swing.JFileChooser |
getInflectDialogBox()
|
static javax.swing.JFileChooser |
getReplaceDialogBox()
|
static javax.swing.JFileChooser |
getSentenceDialogBox()
|
static javax.swing.JFileChooser |
getTableDialogBox()
|
static javax.swing.JFileChooser |
getTranscodeDialogBox()
|
static java.io.File |
getUnitexCurrentLanguageDir()
|
static java.io.File |
getUnitexDir()
|
static java.io.File |
getUserCurrentLanguageDir()
|
static java.io.File |
getUserDir()
|
static java.lang.String |
getUserName()
|
static javax.swing.JFileChooser |
getVarDialogBox()
|
static void |
initConfig()
Initializes the system. |
static boolean |
isCharByCharLanguage()
|
static boolean |
isRightToLeftLanguage()
|
static void |
removeFile(java.io.File src)
Deletes files. |
static void |
setAlphabet(java.io.File s)
Sets user's current alphabet file |
static void |
setApplicationDir(java.io.File s)
Sets the application directory |
static void |
setCurrentCorpusDir(java.io.File s)
Sets the user's current corpus directory |
static void |
setCurrentDELA(java.io.File s)
Sets current DELA |
static void |
setCurrentElagDir(java.io.File s)
Sets the user's current ELAG directory |
static void |
setCurrentGraphDir(java.io.File s)
Sets the user's current graph directory |
static void |
setCurrentLanguage(java.lang.String s)
Sets the current language. |
static void |
setCurrentReplaceGraph(java.io.File s)
Sets current replace graph |
static void |
setCurrentSentenceGraph(java.io.File s)
Sets current sentence delimitation graph |
static void |
setCurrentSnt(java.io.File s)
Sets the current corpus |
static void |
setCurrentSntDir(java.io.File s)
Sets the current corpus |
static void |
setDefaultPreprocessingGraphs()
Sets sentence delimitation and replace graphs |
static void |
setUnitexCurrentLanguageDir(java.io.File s)
Sets the system's current language directory |
static void |
setUnitexDir(java.io.File s)
Sets the system directory |
static void |
setUserCurrentLanguageDir(java.io.File s)
Sets the user's current language directory. |
static void |
setUserDir(java.io.File s)
Sets the user directory |
static void |
updateOpenSaveDialogBoxes()
Updates working directories of dialog boxes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int WINDOWS_SYSTEM
public static final int LINUX_SYSTEM
public static final int MAC_OS_X_SYSTEM
public static final int SUN_OS_SYSTEM
public static final int MAXIMUM_UTTERANCE_NUMBER_TO_DISPLAY_WITH_JAVA
public static final java.lang.String CORPUS_TOO_LARGE_MESSAGE
public static final java.lang.String FILE_TOO_LARGE_MESSAGE
public static final java.lang.String EMPTY_FILE_MESSAGE
public static final java.lang.String ERROR_WHILE_READING_FILE_MESSAGE
public static java.lang.String optionFieldTmp
Constructor Detail |
---|
public Config()
Method Detail |
---|
public static void initConfig()
public static javax.swing.JFileChooser getGraphDialogBox()
public static javax.swing.JFileChooser getGrfAndFst2DialogBox()
public static javax.swing.JFileChooser getSentenceDialogBox()
public static javax.swing.JFileChooser getReplaceDialogBox()
public static javax.swing.JFileChooser getDelaDialogBox()
public static javax.swing.JFileChooser getCorpusDialogBox()
public static javax.swing.JFileChooser getInflectDialogBox()
public static javax.swing.JFileChooser getVarDialogBox()
public static javax.swing.JFileChooser getDevDialogBox()
public static javax.swing.JFileChooser getTableDialogBox()
public static javax.swing.JFileChooser getTranscodeDialogBox()
public static javax.swing.JFileChooser getFileEditionDialogBox()
public static javax.swing.JFileChooser getFst2UnambigDialogBox()
public static void updateOpenSaveDialogBoxes()
public static void determineUnitexDir()
public static void determineCurrentUser()
public static void determineWhichSystemIsRunning()
public static int getCurrentSystem()
public static java.lang.String getCurrentSystemName()
public static java.io.File getApplicationDir()
public static void setApplicationDir(java.io.File s)
s
- directory's pathpublic static java.io.File getUnitexDir()
public static void setUnitexDir(java.io.File s)
s
- directory's pathpublic static java.io.File getUserDir()
public static void setUserDir(java.io.File s)
s
- directory's pathpublic static java.lang.String getCurrentLanguage()
public static void setCurrentLanguage(java.lang.String s)
s
- language's namepublic static java.io.File getUnitexCurrentLanguageDir()
public static void setUnitexCurrentLanguageDir(java.io.File s)
s
- directory's pathpublic static java.io.File getUserCurrentLanguageDir()
public static void setUserCurrentLanguageDir(java.io.File s)
s
- directory's pathpublic static java.io.File getCurrentCorpusDir()
public static void setCurrentCorpusDir(java.io.File s)
s
- directory's pathpublic static java.io.File getCurrentGraphDir()
public static void setCurrentGraphDir(java.io.File s)
s
- directory's pathpublic static java.io.File getCurrentElagDir()
public static void setCurrentElagDir(java.io.File s)
s
- directory's pathpublic static java.io.File getAlphabet()
public static void setAlphabet(java.io.File s)
s
- file's pathpublic static java.lang.String getUserName()
public static void chooseNewUserDir()
public static void changeUserDir()
public static void chooseInitialLanguage()
public static void changeLanguage()
public static java.io.File getCurrentSnt()
public static void setCurrentSnt(java.io.File s)
s
- name of the corpus filepublic static java.io.File getCurrentSntDir()
public static void setCurrentSntDir(java.io.File s)
s
- name of the corpus filepublic static java.io.File getCurrentSentenceGraph()
public static void setCurrentSentenceGraph(java.io.File s)
s
- graph's namepublic static java.io.File getCurrentReplaceGraph()
public static void setCurrentReplaceGraph(java.io.File s)
s
- graph's namepublic static void setDefaultPreprocessingGraphs()
public static void copyFileByName(java.io.File src, java.io.File dest)
src
- sourcedest
- destinationpublic static void copyDirRec(java.io.File src, java.io.File dest)
src
- source directorydest
- destination directorypublic static void deleteFileByName(java.io.File src)
src
- sourcepublic static void removeFile(java.io.File src)
src
- sourcepublic static void copyFile(java.io.File src, java.io.File dest)
src
- source filedest
- destination filepublic static void setCurrentDELA(java.io.File s)
s
- dictionary namepublic static java.io.File getCurrentDELA()
public static java.awt.Font getCurrentTextFont()
public static boolean isCharByCharLanguage()
public static boolean isRightToLeftLanguage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |