Package org.eclipse.ui.part
Class ShowInContext
java.lang.Object
org.eclipse.ui.part.ShowInContext
- Direct Known Subclasses:
PropertyShowInContext
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:
-
Constructor Summary
ConstructorDescriptionShowInContext
(Object input, ISelection selection) Constructs a newShowInContext
with the given input and selection. -
Method Summary
Modifier and TypeMethodDescriptiongetInput()
Returns the input, ornull
to indicate no inputReturns the selection, ornull
to indicate no selection.void
Sets the input, ornull
to indicate no input.void
setSelection
(ISelection selection) Sets the selection, ornull
to indicate no selection.
-
Constructor Details
-
ShowInContext
Constructs a newShowInContext
with the given input and selection.- Parameters:
input
- the input ornull
selection
- the selection ornull
-
-
Method Details
-
getInput
Returns the input, ornull
to indicate no input- Returns:
- the input or
null
.
-
getSelection
Returns the selection, ornull
to indicate no selection.- Returns:
- the selection or
null
-
setInput
Sets the input, ornull
to indicate no input.- Parameters:
input
- the input ornull
-
setSelection
Sets the selection, ornull
to indicate no selection.- Parameters:
selection
- the selection ornull
-