de.cau.cs.kieler.core.model.triggers
Class PartTrigger

java.lang.Object
  extended by de.cau.cs.kieler.core.kivi.AbstractTrigger
      extended by de.cau.cs.kieler.core.model.triggers.PartTrigger
All Implemented Interfaces:
ITrigger, IPartListener

public class PartTrigger
extends AbstractTrigger
implements IPartListener

A part trigger that fires trigger states if the active part has been switched. It will be attached to the platform via an IStartup extension.

Rating red

Nested Class Summary
static class PartTrigger.EditorState
          A specialized PartTrigger.PartState allowing to restrict the triggering of combinations sensible to workbench part events.
static class PartTrigger.EventType
          Possible EventTypes PartStates are indicating.
static class PartTrigger.PartState
          Trigger states containing information of the current active work bench part.
 
Field Summary
static IProperty<IEditorInput> EDITOR_INPUT
          The default property containing the editorInput path if the active is an editor.
static String EDITOR_INPUT_ID
          Name of the editorInputPath property.
static IProperty<IPath> EDITOR_INPUT_PATH
          The default property containing the editorInput path if the active is an editor.
static String EDITOR_INPUT_PATH_ID
          Name of the editorInputPath property.
 
Constructor Summary
PartTrigger()
           
 
Method Summary
 void partActivated(IWorkbenchPart part)
          
 void partActivated(IWorkbenchPartReference partRef)
          
 void partBroughtToTop(IWorkbenchPart part)
          
 void partBroughtToTop(IWorkbenchPartReference partRef)
          
 void partClosed(IWorkbenchPart part)
          
 void partClosed(IWorkbenchPartReference partRef)
          
 void partDeactivated(IWorkbenchPart part)
          
 void partDeactivated(IWorkbenchPartReference partRef)
          
 void partHidden(IWorkbenchPartReference partRef)
          
 void partInputChanged(IWorkbenchPartReference partRef)
          
 void partOpened(IWorkbenchPart part)
          
 void partOpened(IWorkbenchPartReference partRef)
          
 void partVisible(IWorkbenchPartReference partRef)
          
 void register()
          Called when the trigger is activated, e.g., if KIVi is (re-)activated or the first ICombination being fired by such a trigger is loaded.
 void unregister()
          Called when the trigger is deactivated, e.g., if the whole KIVi is deactivated.
 
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractTrigger
isActive, setActive, synchronizedTrigger, trigger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDITOR_INPUT_ID

public static final String EDITOR_INPUT_ID
Name of the editorInputPath property.

See Also:
Constant Field Values

EDITOR_INPUT

public static final IProperty<IEditorInput> EDITOR_INPUT
The default property containing the editorInput path if the active is an editor.


EDITOR_INPUT_PATH_ID

public static final String EDITOR_INPUT_PATH_ID
Name of the editorInputPath property.

See Also:
Constant Field Values

EDITOR_INPUT_PATH

public static final IProperty<IPath> EDITOR_INPUT_PATH
The default property containing the editorInput path if the active is an editor.

Constructor Detail

PartTrigger

public PartTrigger()
Method Detail

register

public void register()
Description copied from class: AbstractTrigger
Called when the trigger is activated, e.g., if KIVi is (re-)activated or the first ICombination being fired by such a trigger is loaded. Registers itself where necessary.

Specified by:
register in interface ITrigger
Specified by:
register in class AbstractTrigger

unregister

public void unregister()
Description copied from class: AbstractTrigger
Called when the trigger is deactivated, e.g., if the whole KIVi is deactivated. Unregisters itself where necessary.

Specified by:
unregister in interface ITrigger
Specified by:
unregister in class AbstractTrigger

partOpened

public void partOpened(IWorkbenchPart part)

Specified by:
partOpened in interface IPartListener

partBroughtToTop

public void partBroughtToTop(IWorkbenchPart part)

Specified by:
partBroughtToTop in interface IPartListener

partActivated

public void partActivated(IWorkbenchPart part)

Specified by:
partActivated in interface IPartListener

partDeactivated

public void partDeactivated(IWorkbenchPart part)

Specified by:
partDeactivated in interface IPartListener

partClosed

public void partClosed(IWorkbenchPart part)

Specified by:
partClosed in interface IPartListener

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)