Class ResourceLoaderUtil

java.lang.Object
org.eclipse.nebula.widgets.nattable.ResourceLoaderUtil

public class ResourceLoaderUtil extends Object
Utility class to load resources from the classpath, e.g. JavaScript files.

Have a look at RAP Developer's Guide - Scripting for further information about the usage of JavaScript files in RAP.

  • Constructor Details

    • ResourceLoaderUtil

      public ResourceLoaderUtil()
  • Method Details

    • readTextContent

      public static String readTextContent(String resource)
      Reads the content of a resource file from the classpath.
      Parameters:
      resource - the name of the resource file
      Returns:
      the content of the resource file as a string
      Throws:
      IllegalArgumentException - if the resource file cannot be found or read