}
private static void setProps(int file)
{
GeneratorConfiguration jeniConfig = GeneratorConfiguration.getConfig();
try
{
switch (file)
{
case 1:
String grammar_path = jeniConfig.getProperty(GeneratorConfiguration.GRAMMAR);
if (grammar_path != null && !grammar_path.isEmpty())
{
System.out.println("The path of the grammar source file is : " + grammar_path + "\n");
setProperty("grammar", "grammar_path");
configureMenu();
}
else
{
System.out.println("The grammar source file is not defined.");
setProperty("grammar", "grammar_path");
configureMenu();
}
break;
case 2:
String lexicon_path = jeniConfig.getProperty(GeneratorConfiguration.LEXICON);
if (lexicon_path != null && !lexicon_path.isEmpty())
{
System.out.println("The path of the syntactic lexicon source file is : " + lexicon_path + "\n");
setProperty("syntactic lexicon", "lexicon_path");
configureMenu();