public class ActionContext extends Object
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 and Description |
---|
ActionContext(ISelection selection)
Creates a new action context with the given selection.
|
Modifier and Type | Method and Description |
---|---|
Object |
getInput()
Returns the input element.
|
ISelection |
getSelection()
Returns the selection.
|
void |
setInput(Object input)
Sets the input element.
|
void |
setSelection(ISelection selection)
Sets the selection.
|
public ActionContext(ISelection selection)
public ISelection getSelection()
public void setSelection(ISelection selection)
public Object getInput()
public void setInput(Object input)
input
-
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.