Package org.eclipse.jface.window
Class SameShellProvider
java.lang.Object
org.eclipse.jface.window.SameShellProvider
- All Implemented Interfaces:
IShellProvider
Standard shell provider that always returns the shell containing the given
control. This will always return the correct shell for the control, even if
the control is reparented.
- Since:
- 3.1
-
Constructor Summary
ConstructorDescriptionSameShellProvider
(Control targetControl) Returns a shell provider that always returns the current shell for the given control. -
Method Summary
-
Constructor Details
-
SameShellProvider
Returns a shell provider that always returns the current shell for the given control.- Parameters:
targetControl
- control whose shell will be tracked, or null if getShell() should always return null
-
-
Method Details
-
getShell
Description copied from interface:IShellProvider
Returns the current shell (or null if none). This return value may change over time, and should not be cached.- Specified by:
getShell
in interfaceIShellProvider
- Returns:
- the current shell or null if none
-