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
Answertopia.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.text
Interface IWidgetTokenKeeperExtension

All Known Implementing Classes:
ContentAssistant, InformationPresenter, SubjectControlContentAssistant

public interface IWidgetTokenKeeperExtension

Extension interface for IWidgetTokenKeeper.

Replaces the original requestWidgetToken functionality with a new priority based approach. Adds the concept of focus handling.

Since:
3.0

Method Summary
 boolean requestWidgetToken ( IWidgetTokenOwner owner, int priority)
          The given widget token owner requests the widget token from this token keeper.
 boolean setFocus ( IWidgetTokenOwner owner)
          Requests the receiver to give focus to its popup shell, hover, or similar.
 

Method Detail

requestWidgetToken

boolean requestWidgetToken(
IWidgetTokenOwner owner,
                           int priority)
The given widget token owner requests the widget token from this token keeper. Returns true if the token is released by this token keeper. Note, the keeper must not call releaseWidgetToken(IWidgetTokenKeeper) explicitly.

The general contract is that the receiver should release the token if priority exceeds the receiver's priority.

Parameters:
owner - the token owner
priority - the priority of the request
Returns:
true if token has been released false otherwise

setFocus

boolean setFocus(
IWidgetTokenOwner owner)
Requests the receiver to give focus to its popup shell, hover, or similar. There is no assumption made whether the receiver actually succeeded in taking the focus. The return value gives a hint whether the receiver tried to take focus.

Parameters:
owner - the token owner
Returns:
true if the receiver tried to take focus, false if it did not.

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