Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.window
Class SameShellProvider

java.lang.Object
  extended by 
org.eclipse.jface.window.SameShellProvider
All Implemented Interfaces:
IShellProvider

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.

Since:
3.1

Constructor Summary
SameShellProvider ( Control targetControl)
          Returns a shell provider that always returns the current shell for the given control.
 
Method Summary
  Shell getShell ()
          Returns the current shell (or null if none).
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SameShellProvider

public SameShellProvider(
Control targetControl)
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 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
Returns:
the current shell or null if none

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire