Package org.eclipse.ui.part
Class ShowInContext
- java.lang.Object
-
- org.eclipse.ui.part.ShowInContext
-
- Direct Known Subclasses:
PropertyShowInContext
public class ShowInContext extends Object
Carries the context for the Show In action. The default implementation carries an input and a selection. Subclasses may extend.- Since:
- 2.1
- See Also:
IShowInSource,IShowInTarget
-
-
Constructor Summary
Constructors Constructor Description ShowInContext(Object input, ISelection selection)Constructs a newShowInContextwith the given input and selection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetInput()Returns the input, ornullto indicate no inputISelectiongetSelection()Returns the selection, ornullto indicate no selection.voidsetInput(Object input)Sets the input, ornullto indicate no input.voidsetSelection(ISelection selection)Sets the selection, ornullto indicate no selection.
-
-
-
Constructor Detail
-
ShowInContext
public ShowInContext(Object input, ISelection selection)
Constructs a newShowInContextwith the given input and selection.- Parameters:
input- the input ornullselection- the selection ornull
-
-
Method Detail
-
getInput
public Object getInput()
Returns the input, ornullto indicate no input- Returns:
- the input or
null.
-
getSelection
public ISelection getSelection()
Returns the selection, ornullto indicate no selection.- Returns:
- the selection or
null
-
setInput
public void setInput(Object input)
Sets the input, ornullto indicate no input.- Parameters:
input- the input ornull
-
setSelection
public void setSelection(ISelection selection)
Sets the selection, ornullto indicate no selection.- Parameters:
selection- the selection ornull
-
-