public interface IWidgetTokenKeeperExtension
IWidgetTokenKeeper.
Replaces the original requestWidgetToken functionality with a
new priority based approach. Adds the concept of focus handling.
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean requestWidgetToken(IWidgetTokenOwner owner, int priority)
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.
owner - the token ownerpriority - the priority of the requesttrue if token has been released false otherwiseboolean setFocus(IWidgetTokenOwner owner)
owner - the token ownertrue if the receiver tried to take focus, false if it did not.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.