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 newShowInContext
with the given input and selection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getInput()
Returns the input, ornull
to indicate no inputISelection
getSelection()
Returns the selection, ornull
to indicate no selection.void
setInput(Object input)
Sets the input, ornull
to indicate no input.void
setSelection(ISelection selection)
Sets the selection, ornull
to indicate no selection.
-
-
-
Constructor Detail
-
ShowInContext
public ShowInContext(Object input, ISelection selection)
Constructs a newShowInContext
with the given input and selection.- Parameters:
input
- the input ornull
selection
- the selection ornull
-
-
Method Detail
-
getInput
public Object getInput()
Returns the input, ornull
to indicate no input- Returns:
- the input or
null
.
-
getSelection
public ISelection getSelection()
Returns the selection, ornull
to indicate no selection.- Returns:
- the selection or
null
-
setInput
public void setInput(Object input)
Sets the input, ornull
to indicate no input.- Parameters:
input
- the input ornull
-
setSelection
public void setSelection(ISelection selection)
Sets the selection, ornull
to indicate no selection.- Parameters:
selection
- the selection ornull
-
-