Class ResourceLoaderUtil
java.lang.Object
org.eclipse.nebula.widgets.nattable.ResourceLoaderUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringreadTextContent(String resource) Reads the content of a resource file from the classpath.
-
Constructor Details
-
ResourceLoaderUtil
public ResourceLoaderUtil()
-
-
Method Details
-
readTextContent
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
-