blob: 3fd7af26c755b1c07082fc83b9a69c26ad198af5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.internal.expressions;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.expressions.EvaluationResult;
import org.eclipse.core.expressions.IEvaluationContext;
public class EnablementExpression extends CompositeExpression {
public EnablementExpression(IConfigurationElement configElement) {
}
public EvaluationResult evaluate(IEvaluationContext context) throws CoreException {
long start= 0;
if (Expressions.TRACING)
start= System.currentTimeMillis();
EvaluationResult result= evaluateAnd(context);
if (Expressions.TRACING) {
System.out.println("[Enablement Expression] - evaluation time: " + //$NON-NLS-1$
(System.currentTimeMillis() - start) + " ms."); //$NON-NLS-1$
}
return result;
}
}