org.eclipse.xtext.ui.refactoring.ui
Class RenameRefactoringPopup.PopupVisibilityManager

java.lang.Object
  extended by org.eclipse.xtext.ui.refactoring.ui.RenameRefactoringPopup.PopupVisibilityManager
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.text.IViewportListener, org.eclipse.swt.events.ControlListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.events.MouseListener, org.eclipse.swt.internal.SWTEventListener, org.eclipse.ui.IPartListener2
Enclosing class:
RenameRefactoringPopup

protected class RenameRefactoringPopup.PopupVisibilityManager
extends java.lang.Object
implements org.eclipse.ui.IPartListener2, org.eclipse.swt.events.ControlListener, org.eclipse.swt.events.MouseListener, org.eclipse.swt.events.KeyListener, org.eclipse.jface.text.IViewportListener


Constructor Summary
protected RenameRefactoringPopup.PopupVisibilityManager()
           
 
Method Summary
 void controlMoved(org.eclipse.swt.events.ControlEvent e)
          Sent when the location (x, y) of a control changes relative to its parent (or relative to the display, for Shells).
 void controlResized(org.eclipse.swt.events.ControlEvent e)
          Sent when the size (width, height) of a control changes.
 void keyPressed(org.eclipse.swt.events.KeyEvent e)
          Sent when a key is pressed on the system keyboard.
 void keyReleased(org.eclipse.swt.events.KeyEvent e)
          Sent when a key is released on the system keyboard.
 void mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
          Sent when a mouse button is pressed twice within the (operating system specified) double click period.
 void mouseDown(org.eclipse.swt.events.MouseEvent e)
          Sent when a mouse button is pressed.
 void mouseUp(org.eclipse.swt.events.MouseEvent e)
          Sent when a mouse button is released.
 void partActivated(org.eclipse.ui.IWorkbenchPartReference partRef)
          Notifies this listener that the given part has been activated.
 void partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference partRef)
          Notifies this listener that the given part has been brought to the top.
 void partClosed(org.eclipse.ui.IWorkbenchPartReference partRef)
          Notifies this listener that the given part has been closed.
 void partDeactivated(org.eclipse.ui.IWorkbenchPartReference partRef)
          Notifies this listener that the given part has been deactivated.
 void partHidden(org.eclipse.ui.IWorkbenchPartReference partRef)
          Notifies this listener that the given part is hidden or obscured by another part.
 void partInputChanged(org.eclipse.ui.IWorkbenchPartReference partRef)
          Notifies this listener that the given part's input was changed.
 void partOpened(org.eclipse.ui.IWorkbenchPartReference partRef)
          Notifies this listener that the given part has been opened.
 void partVisible(org.eclipse.ui.IWorkbenchPartReference partRef)
          Notifies this listener that the given part is visible.
 void viewportChanged(int verticalOffset)
          Informs that the view port changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameRefactoringPopup.PopupVisibilityManager

protected RenameRefactoringPopup.PopupVisibilityManager()
Method Detail

partActivated

public void partActivated(org.eclipse.ui.IWorkbenchPartReference partRef)
Description copied from interface: org.eclipse.ui.IPartListener2
Notifies this listener that the given part has been activated.

Specified by:
partActivated in interface org.eclipse.ui.IPartListener2
Parameters:
partRef - the part that was activated
See Also:
IWorkbenchPage.activate(org.eclipse.ui.IWorkbenchPart)

partDeactivated

public void partDeactivated(org.eclipse.ui.IWorkbenchPartReference partRef)
Description copied from interface: org.eclipse.ui.IPartListener2
Notifies this listener that the given part has been deactivated.

Specified by:
partDeactivated in interface org.eclipse.ui.IPartListener2
Parameters:
partRef - the part that was deactivated
See Also:
IWorkbenchPage.activate(org.eclipse.ui.IWorkbenchPart)

viewportChanged

public void viewportChanged(int verticalOffset)
Description copied from interface: org.eclipse.jface.text.IViewportListener
Informs that the view port changed. The given vertical position is the new vertical scrolling offset measured in pixels.

Note: This event will not be sent when the viewer is resized.

Specified by:
viewportChanged in interface org.eclipse.jface.text.IViewportListener
Parameters:
verticalOffset - the vertical offset measured in pixels

mouseUp

public void mouseUp(org.eclipse.swt.events.MouseEvent e)
Description copied from interface: org.eclipse.swt.events.MouseListener
Sent when a mouse button is released.

Specified by:
mouseUp in interface org.eclipse.swt.events.MouseListener
Parameters:
e - an event containing information about the mouse button release

keyPressed

public void keyPressed(org.eclipse.swt.events.KeyEvent e)
Description copied from interface: org.eclipse.swt.events.KeyListener
Sent when a key is pressed on the system keyboard.

Specified by:
keyPressed in interface org.eclipse.swt.events.KeyListener
Parameters:
e - an event containing information about the key press

controlMoved

public void controlMoved(org.eclipse.swt.events.ControlEvent e)
Description copied from interface: org.eclipse.swt.events.ControlListener
Sent when the location (x, y) of a control changes relative to its parent (or relative to the display, for Shells).

Specified by:
controlMoved in interface org.eclipse.swt.events.ControlListener
Parameters:
e - an event containing information about the move

controlResized

public void controlResized(org.eclipse.swt.events.ControlEvent e)
Description copied from interface: org.eclipse.swt.events.ControlListener
Sent when the size (width, height) of a control changes.

Specified by:
controlResized in interface org.eclipse.swt.events.ControlListener
Parameters:
e - an event containing information about the resize

partBroughtToTop

public void partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference partRef)
Description copied from interface: org.eclipse.ui.IPartListener2
Notifies this listener that the given part has been brought to the top.

These events occur when an editor is brought to the top in the editor area, or when a view is brought to the top in a page book with multiple views. They are normally only sent when a part is brought to the top programmatically (via IPerspective.bringToTop). When a part is activated by the user clicking on it, only partActivated is sent.

Specified by:
partBroughtToTop in interface org.eclipse.ui.IPartListener2
Parameters:
partRef - the part that was surfaced
See Also:
IWorkbenchPage.bringToTop(org.eclipse.ui.IWorkbenchPart)

partClosed

public void partClosed(org.eclipse.ui.IWorkbenchPartReference partRef)
Description copied from interface: org.eclipse.ui.IPartListener2
Notifies this listener that the given part has been closed.

Note that if other perspectives in the same page share the view, this notification is not sent. It is only sent when the view is being removed from the page entirely (it is being disposed).

Specified by:
partClosed in interface org.eclipse.ui.IPartListener2
Parameters:
partRef - the part that was closed
See Also:
IWorkbenchPage.hideView(org.eclipse.ui.IViewPart)

partHidden

public void partHidden(org.eclipse.ui.IWorkbenchPartReference partRef)
Description copied from interface: org.eclipse.ui.IPartListener2
Notifies this listener that the given part is hidden or obscured by another part.

Specified by:
partHidden in interface org.eclipse.ui.IPartListener2
Parameters:
partRef - the part that is hidden or obscured by another part

partInputChanged

public void partInputChanged(org.eclipse.ui.IWorkbenchPartReference partRef)
Description copied from interface: org.eclipse.ui.IPartListener2
Notifies this listener that the given part's input was changed.

Specified by:
partInputChanged in interface org.eclipse.ui.IPartListener2
Parameters:
partRef - the part whose input was changed

partOpened

public void partOpened(org.eclipse.ui.IWorkbenchPartReference partRef)
Description copied from interface: org.eclipse.ui.IPartListener2
Notifies this listener that the given part has been opened.

Note that if other perspectives in the same page share the view, this notification is not sent. It is only sent when the view is being newly opened in the page (it is being created).

Specified by:
partOpened in interface org.eclipse.ui.IPartListener2
Parameters:
partRef - the part that was opened
See Also:
IWorkbenchPage.showView(java.lang.String)

partVisible

public void partVisible(org.eclipse.ui.IWorkbenchPartReference partRef)
Description copied from interface: org.eclipse.ui.IPartListener2
Notifies this listener that the given part is visible.

Specified by:
partVisible in interface org.eclipse.ui.IPartListener2
Parameters:
partRef - the part that is visible

mouseDoubleClick

public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
Description copied from interface: org.eclipse.swt.events.MouseListener
Sent when a mouse button is pressed twice within the (operating system specified) double click period.

Specified by:
mouseDoubleClick in interface org.eclipse.swt.events.MouseListener
Parameters:
e - an event containing information about the mouse double click
See Also:
Display.getDoubleClickTime()

mouseDown

public void mouseDown(org.eclipse.swt.events.MouseEvent e)
Description copied from interface: org.eclipse.swt.events.MouseListener
Sent when a mouse button is pressed.

Specified by:
mouseDown in interface org.eclipse.swt.events.MouseListener
Parameters:
e - an event containing information about the mouse button press

keyReleased

public void keyReleased(org.eclipse.swt.events.KeyEvent e)
Description copied from interface: org.eclipse.swt.events.KeyListener
Sent when a key is released on the system keyboard.

Specified by:
keyReleased in interface org.eclipse.swt.events.KeyListener
Parameters:
e - an event containing information about the key release