ch.elexis.actions
Class GlobalEventDispatcher
java.lang.Object
ch.elexis.actions.GlobalEventDispatcher
public class GlobalEventDispatcher
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 happenspart
- 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)
Copyright 2005-2011 by Gerry Weirich, Elexis