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
ConstructorsConstructorDescriptionShowInContext(Object input, ISelection selection) Constructs a newShowInContextwith the given input and selection. -
Method Summary
Modifier and TypeMethodDescriptiongetInput()Returns the input, ornullto indicate no inputReturns the selection, ornullto indicate no selection.voidSets the input, ornullto indicate no input.voidsetSelection(ISelection selection) Sets the selection, ornullto indicate no selection.
-
Constructor Details
-
ShowInContext
Constructs a newShowInContextwith the given input and selection.- Parameters:
input- the input ornullselection- the selection ornull
-
-
Method Details
-
getInput
Returns the input, ornullto indicate no input- Returns:
- the input or
null.
-
getSelection
Returns the selection, ornullto indicate no selection.- Returns:
- the selection or
null
-
setInput
Sets the input, ornullto indicate no input.- Parameters:
input- the input ornull
-
setSelection
Sets the selection, ornullto indicate no selection.- Parameters:
selection- the selection ornull
-