Class SameShellProvider

  • All Implemented Interfaces:

    public class SameShellProvider
    extends Object
    implements 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.
    • Constructor Detail

      • SameShellProvider

        public SameShellProvider​(Control targetControl)
        Returns a shell provider that always returns the current shell for the given control.
        targetControl - control whose shell will be tracked, or null if getShell() should always return null
    • Method Detail

      • getShell

        public Shell 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 interface IShellProvider
        the current shell or null if none