|
What this is
Other links
The source code/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui;
import org.eclipse.core.expressions.EvaluationResult;
import org.eclipse.core.expressions.Expression;
import org.eclipse.core.expressions.ExpressionInfo;
import org.eclipse.core.expressions.IEvaluationContext;
import org.eclipse.swt.widgets.Shell;
/**
* <p>
* An expression that checks the active shell variable. The variable name is
* <code>ISources.ACTIVE_SHELL_NAME and falls back to
* <code>ISources.ACTIVE_WORKBENCH_WINDOW. That is, if the active
* shell doesn't match, then it will be allowed to match the active workbench
* window.
* </p>
*
* @since 3.1
*/
public final class ActiveShellExpression extends Expression {
/**
* The seed for the hash code for all schemes.
*/
private static final int HASH_INITIAL = ActiveShellExpression.class
.getName().hashCode();
/**
* The sources value to use with this expression.
*/
public static final int SOURCES = ISources.ACTIVE_SHELL
| ISources.ACTIVE_WORKBENCH_WINDOW;
/**
* The shell that must be active for this expression to evaluate to
* <code>true. If this value is
|
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.