jTracer  1.03
Stack trace visualization tool
File org.libcsdbg.jtracer.Registry.getResource ( String  path) throws IOException

Get a resource file.

Parameters
[in]paththe resource relative path (under the 'res' directory)
Returns
the file
Note
This method is provided for filesystem portability

Definition at line 202 of file Registry.java.

References org.libcsdbg.jtracer.Registry.getPrefix().

Referenced by org.libcsdbg.jtracer.Registry.loadIcon(), and org.libcsdbg.jtracer.Registry.setup().

203  {
204  if (File.separator.equals("/"))
205  return new File(getPrefix(), "res/" + path);
206 
207  path = "res/" + path;
208  path.replace("/", File.separator);
209  return new File(getPrefix(), path);
210  }
static File getPrefix()
Get the installation prefix.
Definition: Registry.java:369

+ Here is the call graph for this function:

+ Here is the caller graph for this function: