PageRenderTime 226ms CodeModel.GetById 223ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Unknown | 51 lines | 43 code | 8 blank | 0 comment | 0 complexity | 893f77e9197ec655a4bf3a5e9a3c8d0c MD5 | raw file
 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
27void browseDirectory()
28{
29	path = Macros.input(view,"Directory to browse:");
30	if(path != null)
31		VFSBrowser.browseDirectory(view,path);
32}
33
34browseDirectory();
35
36/*
37	Macro index data (in DocBook format)
38
39<listitem>
40    <para><filename>Browse_Directory.bsh</filename></para>
41    <abstract><para>
42        Opens a directory supplied by the user in the file system
43        browser.
44    </para></abstract>
45</listitem>
46
47*/
48
49
50// end Browse_Directory.bsh
51