Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.actions
Class GlobalEventDispatcher

java.lang.Object
  extended by ch.elexis.actions.GlobalEventDispatcher

public class GlobalEventDispatcher
extends java.lang.Object


Nested Class Summary
static interface GlobalEventDispatcher.IActivationListener
           
 
Method Summary
static void addActivationListener(GlobalEventDispatcher.IActivationListener l, IWorkbenchPart part)
          Add a listener that will be informed as a View gets activated or deactivated, and becomes visible or invisible.
 ch.elexis.actions.GlobalEventDispatcher.GlobalListener getDefaultListener()
          Einen Standardlistener holen, der ISelectionEvents von StructuredViewers der Workbench holt und an GlobalEvents weiterleitet.
static GlobalEventDispatcher getInstance()
           
 void partActivated(IWorkbenchPartReference partRef)
           
 void partBroughtToTop(IWorkbenchPartReference partRef)
           
 void partClosed(IWorkbenchPartReference partRef)
           
 void partDeactivated(IWorkbenchPartReference partRef)
           
 void partHidden(IWorkbenchPartReference partRef)
           
 void partInputChanged(IWorkbenchPartReference partRef)
           
 void partOpened(IWorkbenchPartReference partRef)
           
 void partVisible(IWorkbenchPartReference partRef)
           
static void removeActivationListener(GlobalEventDispatcher.IActivationListener l, IWorkbenchPart part)
          Remove an activationlistener.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GlobalEventDispatcher getInstance()

getDefaultListener

public ch.elexis.actions.GlobalEventDispatcher.GlobalListener getDefaultListener()
Einen Standardlistener holen, der ISelectionEvents von StructuredViewers der Workbench holt und an GlobalEvents weiterleitet.

Returns:

addActivationListener

public static void addActivationListener(GlobalEventDispatcher.IActivationListener l,
                                         IWorkbenchPart part)
Add a listener that will be informed as a View gets activated or deactivated, and becomes visible or invisible.

Parameters:
l - the Activationlistener. If a listener is added twice, it will be called twice.
part - The workbench part to observe

removeActivationListener

public static void removeActivationListener(GlobalEventDispatcher.IActivationListener l,
                                            IWorkbenchPart part)
Remove an activationlistener. If the same listener has been added more than once, only one call will be removed.

Parameters:
l - The listener to remove. If no such listener was added, nothing happens
part - the worbench part this listener was attached to. If no such par exists, nothing happens

partActivated

public void partActivated(IWorkbenchPartReference partRef)

partBroughtToTop

public void partBroughtToTop(IWorkbenchPartReference partRef)

partClosed

public void partClosed(IWorkbenchPartReference partRef)

partDeactivated

public void partDeactivated(IWorkbenchPartReference partRef)

partOpened

public void partOpened(IWorkbenchPartReference partRef)

partHidden

public void partHidden(IWorkbenchPartReference partRef)

partVisible

public void partVisible(IWorkbenchPartReference partRef)

partInputChanged

public void partInputChanged(IWorkbenchPartReference partRef)

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis