Windows conforming to jEdit's dockable window API can appear in "panes" located above, below or to the left or right of the main editing pane. They can also be displayed in "floating" frame windows. A DockableWindowManager keeps track of the windows associated with a particular View. Each View object contains an instance of this class.
public JComponent getDockable(
String name)
;
Returns the dockable window named by the name parameter. If there is no dockable window bearing the requested name, the method returns null.
You might wonder why this method is not named getDockableWindow(). A method with that name already exists, but it is deprecated since it returns instances of the DockableWindow interface, which should no longer be used.
Always call getDockable() instead.
public void addDockableWindow(
String name)
;
If the dockable window named by the name parameter does not exist, it is created. The dockable window is then made visible.
public void showDockableWindow( | String | name) ; |
public void removeDockableWindow( | String | name) ; |
public void toggleDockableWindow( | String | name) ; |
These methods, respectively show, hide and toggle the visibility of the dockable window object named by the name parameter. If the DockableWindowManager does not contain a reference to the window, these methods send an error message to the activity log and have no other effect. Only addDockableWindow() can cause the creation of a dockable window.