Exemplo n.º 1
0
 private String getTestRigTemplateFromFile(String testRigFullPath) {
   if (testRigFullPath == null) return "";
   try {
     return Utils.stringFromFile(testRigFullPath);
   } catch (IOException ioe) {
     return "";
   }
 }
Exemplo n.º 2
0
 private String getDefaultTestRigByLanguage(String grammarLanguage) {
   try {
     if ("JAVA".equalsIgnoreCase(grammarLanguage)) {
       return Utils.stringFromFile(
           IDE.getApplicationPath()
               + File.separatorChar
               + DBLocal.parserGlueCodeTemplatePath
               + DBLocal.parserGlueCodeTemplateName
               + ".st");
     } else if ("PYTHON".equalsIgnoreCase(grammarLanguage)) {
       return Utils.stringFromFile(
           IDE.getApplicationPath()
               + File.separatorChar
               + DBLocal.parserGlueCodeTemplatePath
               + DBLocal.parserGlueCodeTemplateName
               + "_python.st");
     }
   } catch (IOException ioe) {
     this.debuggerTab.getConsole().println(ioe);
   }
   return "";
 }