Package org.openbp.common.template

Examples of org.openbp.common.template.TemplateEngineResult


      TemplateEngine engine = new TemplateEngine();
      engine.setOutputDir(context.getOutputRootDir());
      engine.setProperties(context.getProperties());
      engine.setClassLoader(getClassLoader());

      TemplateEngineResult result = engine.processTemplate(tn, null);
      if (result == null)
      {
        // No files generated, but also no error, so create a dummy
        result = new TemplateEngineResult();
      }
      context.setTemplateEngineResult(result);
    }
  }
View Full Code Here


      // Stop and hide the progress bar again
      getProgressBar().setIndeterminate(false);
      getProgressBar().setValue(100);

      // Show the 'Run' panel again and update text/description
      TemplateEngineResult resultList = context.getTemplateEngineResult();
      if (resultList != null)
      {
        showStartPanel(MODE_SUCCESS);
      }
      else
View Full Code Here

          return;
        }
      }

      // Open the generated file if generation is successful and desired by the user
      TemplateEngineResult resultList = getContext().getTemplateEngineResult();
      if (resultList != null && openCheckBox != null && openCheckBox.isSelected())
      {
        String fileToOpen = resultList.getFirstFileName();
        if (fileToOpen == null)
          return;

        String mimeType = resultList.getMimeType(fileToOpen);

        Association as = new Association();
        as.setAssociationTypes(new String [] { mimeType, MimeTypes.TEXT_FILE });
        as.setAssociationPriority(Association.PRIMARY);
View Full Code Here

TOP

Related Classes of org.openbp.common.template.TemplateEngineResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.