Package org.eclipse.jface.text.source
Class AnnotationBarHoverManager.Closer
- java.lang.Object
-
- org.eclipse.swt.events.MouseTrackAdapter
-
- org.eclipse.jface.text.source.AnnotationBarHoverManager.Closer
-
- All Implemented Interfaces:
EventListener
,AbstractInformationControlManager.IInformationControlCloser
,ControlListener
,DisposeListener
,KeyListener
,MouseListener
,MouseMoveListener
,MouseTrackListener
,ShellListener
,SWTEventListener
,Listener
- Enclosing class:
- AnnotationBarHoverManager
@Deprecated protected class AnnotationBarHoverManager.Closer extends MouseTrackAdapter implements AbstractInformationControlManager.IInformationControlCloser, MouseListener, MouseMoveListener, ControlListener, KeyListener, DisposeListener, ShellListener, Listener
Deprecated.As of 3.4, no longer used as closer from super class is usedThe information control closer for the hover information. Closes the information control as soon as the mouse pointer leaves the subject area, a mouse button is pressed, the user presses a key, or the subject control is resized or moved.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description Closer()
Deprecated.Creates a new information control closer.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
controlMoved(ControlEvent event)
Deprecated.Sent when the location (x, y) of a control changes relative to its parent (or relative to the display, forShell
s).void
controlResized(ControlEvent event)
Deprecated.Sent when the size (width, height) of a control changes.void
handleEvent(Event event)
Deprecated.Sent when an event that the receiver has registered for occurs.void
keyPressed(KeyEvent event)
Deprecated.Sent when a key is pressed on the system keyboard.void
keyReleased(KeyEvent event)
Deprecated.Sent when a key is released on the system keyboard.void
mouseDoubleClick(MouseEvent event)
Deprecated.Sent when a mouse button is pressed twice within the (operating system specified) double click period.void
mouseDown(MouseEvent event)
Deprecated.Sent when a mouse button is pressed.void
mouseExit(MouseEvent event)
Deprecated.Sent when the mouse pointer passes out of the area of the screen covered by a control.void
mouseMove(MouseEvent event)
Deprecated.Sent when the mouse moves.void
mouseUp(MouseEvent event)
Deprecated.Sent when a mouse button is released.void
setInformationControl(IInformationControl control)
Deprecated.Sets the closer's information control, the one to close if necessary.void
setSubjectControl(Control control)
Deprecated.Sets the closer's subject control.void
shellActivated(ShellEvent e)
Deprecated.Sent when a shell becomes the active window.void
shellClosed(ShellEvent e)
Deprecated.Sent when a shell is closed.void
shellDeactivated(ShellEvent e)
Deprecated.Sent when a shell stops being the active window.void
shellDeiconified(ShellEvent e)
Deprecated.Sent when a shell is un-minimized.void
shellIconified(ShellEvent e)
Deprecated.Sent when a shell is minimized.void
start(Rectangle subjectArea)
Deprecated.Tells this closer to start monitoring the subject and the information control.void
stop()
Deprecated.Tells this closer to stop monitoring the subject and the information control.protected void
stop(boolean delayRestart)
Deprecated.As of 3.4, replaced bystop()
.void
widgetDisposed(DisposeEvent e)
Deprecated.Sent when the widget is disposed.-
Methods inherited from class org.eclipse.swt.events.MouseTrackAdapter
mouseEnter, mouseHover
-
-
-
-
Method Detail
-
setSubjectControl
public void setSubjectControl(Control control)
Deprecated.Description copied from interface:AbstractInformationControlManager.IInformationControlCloser
Sets the closer's subject control. This is the control that parents the information control and from which the subject of the information to be shown is retrieved.Must be called before
start
. May again be called betweenstart
andstop
.- Specified by:
setSubjectControl
in interfaceAbstractInformationControlManager.IInformationControlCloser
- Parameters:
control
- the subject control
-
setInformationControl
public void setInformationControl(IInformationControl control)
Deprecated.Description copied from interface:AbstractInformationControlManager.IInformationControlCloser
Sets the closer's information control, the one to close if necessary.Must be called before
start
. May again be called betweenstart
andstop
.- Specified by:
setInformationControl
in interfaceAbstractInformationControlManager.IInformationControlCloser
- Parameters:
control
- the information control
-
start
public void start(Rectangle subjectArea)
Deprecated.Description copied from interface:AbstractInformationControlManager.IInformationControlCloser
Tells this closer to start monitoring the subject and the information control. The presented information is considered valid for the given area of the subject control's display.- Specified by:
start
in interfaceAbstractInformationControlManager.IInformationControlCloser
- Parameters:
subjectArea
- the area for which the presented information is valid
-
stop
public void stop()
Deprecated.Description copied from interface:AbstractInformationControlManager.IInformationControlCloser
Tells this closer to stop monitoring the subject and the information control.- Specified by:
stop
in interfaceAbstractInformationControlManager.IInformationControlCloser
-
stop
@Deprecated protected void stop(boolean delayRestart)
Deprecated.As of 3.4, replaced bystop()
. Note thatdelayRestart
was never honored.Stops the information control and ifdelayRestart
is set allows restart only after a certain delay.- Parameters:
delayRestart
-true
if restart should be delayed
-
mouseMove
public void mouseMove(MouseEvent event)
Deprecated.Description copied from interface:MouseMoveListener
Sent when the mouse moves.- Specified by:
mouseMove
in interfaceMouseMoveListener
- Parameters:
event
- an event containing information about the mouse move
-
mouseUp
public void mouseUp(MouseEvent event)
Deprecated.Description copied from interface:MouseListener
Sent when a mouse button is released.- Specified by:
mouseUp
in interfaceMouseListener
- Parameters:
event
- an event containing information about the mouse button release
-
mouseDown
public void mouseDown(MouseEvent event)
Deprecated.Description copied from interface:MouseListener
Sent when a mouse button is pressed.- Specified by:
mouseDown
in interfaceMouseListener
- Parameters:
event
- an event containing information about the mouse button press
-
mouseDoubleClick
public void mouseDoubleClick(MouseEvent event)
Deprecated.Description copied from interface:MouseListener
Sent when a mouse button is pressed twice within the (operating system specified) double click period.- Specified by:
mouseDoubleClick
in interfaceMouseListener
- Parameters:
event
- an event containing information about the mouse double click- See Also:
Display.getDoubleClickTime()
-
handleEvent
public void handleEvent(Event event)
Deprecated.Description copied from interface:Listener
Sent when an event that the receiver has registered for occurs.- Specified by:
handleEvent
in interfaceListener
- Parameters:
event
- the event which occurred
-
mouseExit
public void mouseExit(MouseEvent event)
Deprecated.Description copied from class:MouseTrackAdapter
Sent when the mouse pointer passes out of the area of the screen covered by a control. The default behavior is to do nothing.- Specified by:
mouseExit
in interfaceMouseTrackListener
- Overrides:
mouseExit
in classMouseTrackAdapter
- Parameters:
event
- an event containing information about the mouse exit
-
controlResized
public void controlResized(ControlEvent event)
Deprecated.Description copied from interface:ControlListener
Sent when the size (width, height) of a control changes.- Specified by:
controlResized
in interfaceControlListener
- Parameters:
event
- an event containing information about the resize
-
controlMoved
public void controlMoved(ControlEvent event)
Deprecated.Description copied from interface:ControlListener
Sent when the location (x, y) of a control changes relative to its parent (or relative to the display, forShell
s).- Specified by:
controlMoved
in interfaceControlListener
- Parameters:
event
- an event containing information about the move
-
keyReleased
public void keyReleased(KeyEvent event)
Deprecated.Description copied from interface:KeyListener
Sent when a key is released on the system keyboard.- Specified by:
keyReleased
in interfaceKeyListener
- Parameters:
event
- an event containing information about the key release
-
keyPressed
public void keyPressed(KeyEvent event)
Deprecated.Description copied from interface:KeyListener
Sent when a key is pressed on the system keyboard.- Specified by:
keyPressed
in interfaceKeyListener
- Parameters:
event
- an event containing information about the key press
-
shellActivated
public void shellActivated(ShellEvent e)
Deprecated.Description copied from interface:ShellListener
Sent when a shell becomes the active window.- Specified by:
shellActivated
in interfaceShellListener
- Parameters:
e
- an event containing information about the activation
-
shellClosed
public void shellClosed(ShellEvent e)
Deprecated.Description copied from interface:ShellListener
Sent when a shell is closed.- Specified by:
shellClosed
in interfaceShellListener
- Parameters:
e
- an event containing information about the close
-
shellDeactivated
public void shellDeactivated(ShellEvent e)
Deprecated.Description copied from interface:ShellListener
Sent when a shell stops being the active window.- Specified by:
shellDeactivated
in interfaceShellListener
- Parameters:
e
- an event containing information about the deactivation
-
shellDeiconified
public void shellDeiconified(ShellEvent e)
Deprecated.Description copied from interface:ShellListener
Sent when a shell is un-minimized.- Specified by:
shellDeiconified
in interfaceShellListener
- Parameters:
e
- an event containing information about the un-minimization
-
shellIconified
public void shellIconified(ShellEvent e)
Deprecated.Description copied from interface:ShellListener
Sent when a shell is minimized.- Specified by:
shellIconified
in interfaceShellListener
- Parameters:
e
- an event containing information about the minimization
-
widgetDisposed
public void widgetDisposed(DisposeEvent e)
Deprecated.Description copied from interface:DisposeListener
Sent when the widget is disposed.- Specified by:
widgetDisposed
in interfaceDisposeListener
- Parameters:
e
- an event containing information about the dispose
-
-