PageRenderTime 86ms CodeModel.GetById 83ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/macros/Interface/Toggle_Left_Docking_Area.bsh

#
Unknown | 36 lines | 29 code | 7 blank | 0 comment | 0 complexity | 37ce0ae1812da4b84d143dbe22506bca MD5 | raw file
 1/*
 2 * Toggle_Left_Docking_Area.bsh - a BeanShell macro for the 
 3 * jEdit text editor - Expands or collapses the left docking
 4 * area, depending on it's current state.
 5 *
 6 * Copyright (C) 2003 Ollie Rutherfurd <oliver@rutherfurd.net>
 7 *
 8 * $Id: Toggle_Left_Docking_Area.bsh 4906 2003-10-26 20:57:28Z spestov $
 9 */
10
11toggleLeftDockingArea()
12{
13	dockarea = view.getDockableWindowManager().getLeftDockingArea();
14	if(dockarea.getCurrent() == null)
15		dockarea.showMostRecent();
16	else
17		dockarea.show(null);
18	view.getTextArea().requestFocus();
19}
20
21toggleLeftDockingArea();
22
23/*
24
25	Macro index data (in DocBook format)
26
27<listitem>
28	<para><filename>Toggle_Left_Docking_Area.bsh</filename></para>
29	<abstract><para>
30		Expands or collapses the left docking area, 
31		depending on it's current state.
32	</para></abstract>
33</listitem>
34
35*/
36