PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/Console/console/bsh/runCommandInConsole.bsh

#
Unknown | 20 lines | 15 code | 5 blank | 0 comment | 0 complexity | 3b71817867f61a183e4743a9aa6e0e33 MD5 | raw file
 1/* Runs a command. */
 2runCommandInConsole(View view, String shell, String command)
 3{
 4	import console.Shell;
 5
 6	// Open the console if it isn't already open
 7	view.getDockableWindowManager().addDockableWindow("console");
 8
 9	// Obtain the console instance
10	console = view.getDockableWindowManager().getDockable("console");
11
12	// Set the shell to use
13	Shell _shell = Shell.getShell(shell);
14
15	// Run the command
16	console.run(_shell, command);
17}
18
19help.runCommandInConsole
20	= "usage: runCommandInConsole(View view, String shell, String command)";