org.eclipse.mylar.monitor.workbench
Class WindowChangeMonitor

java.lang.Object
  extended by org.eclipse.mylar.monitor.workbench.WindowChangeMonitor
All Implemented Interfaces:
org.eclipse.ui.IWindowListener

public class WindowChangeMonitor
extends java.lang.Object
implements org.eclipse.ui.IWindowListener

Logs all bug root window selections (i.e. the window that the workbench is launced with).

Author:
Leah Findlater and Mik Kersten

Field Summary
static java.lang.String WINDOW_ACTIVATED
           
static java.lang.String WINDOW_CLOSED
           
static java.lang.String WINDOW_DEACTIVATED
           
static java.lang.String WINDOW_OPENED
           
 
Constructor Summary
WindowChangeMonitor()
           
 
Method Summary
protected  java.lang.String getWindowOrigin(org.eclipse.ui.IWorkbenchWindow window)
           
 void windowActivated(org.eclipse.ui.IWorkbenchWindow window)
           
 void windowClosed(org.eclipse.ui.IWorkbenchWindow window)
           
 void windowDeactivated(org.eclipse.ui.IWorkbenchWindow window)
           
 void windowOpened(org.eclipse.ui.IWorkbenchWindow window)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WINDOW_CLOSED

public static final java.lang.String WINDOW_CLOSED
See Also:
Constant Field Values

WINDOW_OPENED

public static final java.lang.String WINDOW_OPENED
See Also:
Constant Field Values

WINDOW_ACTIVATED

public static final java.lang.String WINDOW_ACTIVATED
See Also:
Constant Field Values

WINDOW_DEACTIVATED

public static final java.lang.String WINDOW_DEACTIVATED
See Also:
Constant Field Values
Constructor Detail

WindowChangeMonitor

public WindowChangeMonitor()
Method Detail

windowOpened

public void windowOpened(org.eclipse.ui.IWorkbenchWindow window)
Specified by:
windowOpened in interface org.eclipse.ui.IWindowListener

windowClosed

public void windowClosed(org.eclipse.ui.IWorkbenchWindow window)
Specified by:
windowClosed in interface org.eclipse.ui.IWindowListener

windowDeactivated

public void windowDeactivated(org.eclipse.ui.IWorkbenchWindow window)
Specified by:
windowDeactivated in interface org.eclipse.ui.IWindowListener

windowActivated

public void windowActivated(org.eclipse.ui.IWorkbenchWindow window)
Specified by:
windowActivated in interface org.eclipse.ui.IWindowListener

getWindowOrigin

protected java.lang.String getWindowOrigin(org.eclipse.ui.IWorkbenchWindow window)