/jEdit/tags/jedit-4-3-pre15/org/gjt/sp/jedit/bsh/commands/getResource.bsh
# · Unknown · 14 lines · 11 code · 3 blank · 0 comment · 0 complexity · d3cf2c6fca6b3fc1c2953eab58370ba0 MD5 · raw file
- /**
- Get a resource from the BeanShell classpath.
- This method takes into account modification to the BeanShell class path via
- addClassPath() and setClassPath();
- */
- bsh.help.getResource = "usage: getResource( String name )";
- import org.gjt.sp.jedit.bsh.Interpreter;
- URL getResource( String path )
- {
- return this.interpreter.getClassManager().getResource( path );
- }