Package org.eclipse.ui.actions
Class ActionContext
java.lang.Object
org.eclipse.ui.actions.ActionContext
An 
ActionContext represents the context used to determine which
 actions are added by an ActionGroup, and what their enabled
 state should be.
 This class encapsulates a selection and an input element. Clients may subclass this class to add more information to the context.
- 
Constructor SummaryConstructorsConstructorDescriptionActionContext(ISelection selection) Creates a new action context with the given selection.
- 
Method SummaryModifier and TypeMethodDescriptiongetInput()Returns the input element.voidSets the input element.voidsetSelection(ISelection selection) Sets the selection.
- 
Constructor Details- 
ActionContextCreates a new action context with the given selection.- Parameters:
- selection- the selection
 
 
- 
- 
Method Details- 
getSelection- Returns:
- the selection.
 
- 
setSelectionSets the selection.- Parameters:
- selection- the selection to set
 
- 
getInputReturns the input element.- Returns:
- the input element
 
- 
setInputSets the input element.- Parameters:
- input- the input to set.
 
 
-