PageRenderTime 54ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/bsh/commands/getResource.bsh

#
Unknown | 14 lines | 11 code | 3 blank | 0 comment | 0 complexity | e6db877cec15a559e092aad7782aeecc MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /**
  2. Get a resource from the BeanShell classpath.
  3. This method takes into account modification to the BeanShell class path via
  4. addClassPath() and setClassPath();
  5. */
  6. bsh.help.getResource = "usage: getResource( String name )";
  7. import bsh.Interpreter;
  8. URL getResource( String path )
  9. {
  10. return this.interpreter.getClassManager().getResource( path );
  11. }