Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

ch.elexis.actions
Class GlobalEventDispatcher

java.lang.Object
  extended by ch.elexis.actions.GlobalEventDispatcher
All Implemented Interfaces:
org.eclipse.ui.IPartListener2

public class GlobalEventDispatcher
extends java.lang.Object
implements org.eclipse.ui.IPartListener2


Nested Class Summary
static interface GlobalEventDispatcher.IActivationListener
           
 
Method Summary
static void addActivationListener(GlobalEventDispatcher.IActivationListener l, org.eclipse.ui.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(org.eclipse.ui.IWorkbenchPartReference partRef)
           
 void partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference partRef)
           
 void partClosed(org.eclipse.ui.IWorkbenchPartReference partRef)
           
 void partDeactivated(org.eclipse.ui.IWorkbenchPartReference partRef)
           
 void partHidden(org.eclipse.ui.IWorkbenchPartReference partRef)
           
 void partInputChanged(org.eclipse.ui.IWorkbenchPartReference partRef)
           
 void partOpened(org.eclipse.ui.IWorkbenchPartReference partRef)
           
 void partVisible(org.eclipse.ui.IWorkbenchPartReference partRef)
           
static void removeActivationListener(GlobalEventDispatcher.IActivationListener l, org.eclipse.ui.IWorkbenchPart part)
          Remove an activationlistener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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,
                                         org.eclipse.ui.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,
                                            org.eclipse.ui.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(org.eclipse.ui.IWorkbenchPartReference partRef)
Specified by:
partActivated in interface org.eclipse.ui.IPartListener2

partBroughtToTop

public void partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference partRef)
Specified by:
partBroughtToTop in interface org.eclipse.ui.IPartListener2

partClosed

public void partClosed(org.eclipse.ui.IWorkbenchPartReference partRef)
Specified by:
partClosed in interface org.eclipse.ui.IPartListener2

partDeactivated

public void partDeactivated(org.eclipse.ui.IWorkbenchPartReference partRef)
Specified by:
partDeactivated in interface org.eclipse.ui.IPartListener2

partOpened

public void partOpened(org.eclipse.ui.IWorkbenchPartReference partRef)
Specified by:
partOpened in interface org.eclipse.ui.IPartListener2

partHidden

public void partHidden(org.eclipse.ui.IWorkbenchPartReference partRef)
Specified by:
partHidden in interface org.eclipse.ui.IPartListener2

partVisible

public void partVisible(org.eclipse.ui.IWorkbenchPartReference partRef)
Specified by:
partVisible in interface org.eclipse.ui.IPartListener2

partInputChanged

public void partInputChanged(org.eclipse.ui.IWorkbenchPartReference partRef)
Specified by:
partInputChanged in interface org.eclipse.ui.IPartListener2

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013