|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.expressions.Expression
org.eclipse.ui.ActiveShellExpression
An expression that checks the active shell variable. The variable names is
ISources.ACTIVE_SHELL_NAME
and falls back to
ISources.ACTIVE_WORKBENCH_WINDOW
. That is, if the active
shell doesn't match, then it will be allowed to match the active workbench
window.
Field Summary | |
---|---|
static int |
SOURCES
The sources value to use with this expression. |
Fields inherited from class org.eclipse.core.expressions.Expression |
---|
ATT_VALUE, FALSE, TRUE |
Constructor Summary | |
---|---|
ActiveShellExpression(Shell activeShell)
Constructs a new instance of ActiveShellExpression |
Method Summary | |
---|---|
EvaluationResult |
evaluate(IEvaluationContext context)
Evaluates this expression. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SOURCES
Constructor Detail |
public ActiveShellExpression(Shell activeShell)
ActiveShellExpression
activeShell
- The shell to match with the active shell; null
if it will match any active shell.Method Detail |
public final EvaluationResult evaluate(IEvaluationContext context)
EvaluationResult.TRUE
. Similarly, if the active workbench
window shell defined by the context matches the shell from this
expression, then this evaluates to EvaluationResult.TRUE
.
evaluate
in class Expression
context
- The context from which the current state is determined; must
not be null
.
EvaluationResult.TRUE
if the shell is active;
EvaluationResult.FALSE
otherwise.public final String toString()
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.