Extension SDK

oracle.ide.docking
Class DockUtil

java.lang.Object
  extended byoracle.ide.docking.DockUtil

public final class DockUtil
extends java.lang.Object


Constructor Summary
DockUtil()
           
 
Method Summary
static void hideDockableWindow(DockableWindow dw)
          Hides the DockableWindow and set the focus on the active Editor
static void showDockableWindow(DockableWindow dw)
          Shows and set the focus on the DockableWindow
static void smartToggleDockableWindow(DockableWindow dw, Context context)
          'Smart' Toggles the visibility of the DockableWindow.
static void toggleDockableWindow(DockableWindow dw)
          Toggles the visibility of the DockableWindow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockUtil

public DockUtil()
Method Detail

showDockableWindow

public static void showDockableWindow(DockableWindow dw)
Shows and set the focus on the DockableWindow

Parameters:
dw - the DockableWindow

hideDockableWindow

public static void hideDockableWindow(DockableWindow dw)
Hides the DockableWindow and set the focus on the active Editor

Parameters:
dw - the DockableWindow

toggleDockableWindow

public static void toggleDockableWindow(DockableWindow dw)
Toggles the visibility of the DockableWindow

Parameters:
dw - the DockableWindow

smartToggleDockableWindow

public static void smartToggleDockableWindow(DockableWindow dw,
                                             Context context)
'Smart' Toggles the visibility of the DockableWindow. The 'smart' behavior is the following:
If the action was issued from the menu or if the window is hidden, it behaves just like toggleDockableWindow.
If the window is visible but does not have the focus, it puts the focus on the window.
If the window is visible and has the focus, the window is closed.

This behavior allows to use the same shortcut to access, to show and to hide the window.

Parameters:
dw - the DockableWindow

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.