PageRenderTime 48ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/macros/Files/Browse_Directory.bsh

#
Unknown | 51 lines | 43 code | 8 blank | 0 comment | 0 complexity | 893f77e9197ec655a4bf3a5e9a3c8d0c 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. * Browse_Directory.bsh - a BeanShell macro script for the
  3. * jEdit text editor - Prompts for a path name and opens it
  4. * in the file system browser
  5. * Copyright (C) 2001 Slava Pestov
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version 2
  10. * of the License, or any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with the jEdit program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20. *
  21. * $Id: Browse_Directory.bsh 3928 2001-12-01 05:48:48Z spestov $
  22. *
  23. * Checked for jEdit 4.0 API
  24. *
  25. */
  26. void browseDirectory()
  27. {
  28. path = Macros.input(view,"Directory to browse:");
  29. if(path != null)
  30. VFSBrowser.browseDirectory(view,path);
  31. }
  32. browseDirectory();
  33. /*
  34. Macro index data (in DocBook format)
  35. <listitem>
  36. <para><filename>Browse_Directory.bsh</filename></para>
  37. <abstract><para>
  38. Opens a directory supplied by the user in the file system
  39. browser.
  40. </para></abstract>
  41. </listitem>
  42. */
  43. // end Browse_Directory.bsh