@Override public EvaluationResult evaluate(IEvaluationContext context) throws CoreException { String str = System.getProperty(fProperty); if (str == null) return EvaluationResult.FALSE; return EvaluationResult.valueOf(str.equals(fExpectedValue)); }
/* * (non-Javadoc) * * @see * org.eclipse.core.expressions.Expression#evaluate(org.eclipse.core * .expressions.IEvaluationContext) */ public EvaluationResult evaluate(IEvaluationContext context) { Object v = context.getVariable(ISources.ACTIVE_PART_ID_NAME); return EvaluationResult.valueOf(partId.equals(v)); }