Bug 302791 [CommonNavigator] Associated editor does not close when deleting resource (editorInput) through CommonNavigator
bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/filters/CoreExpressionFilter.java
private Expression filterExpression;
	/**
	 * Creates a filter which hides all elements that match the given
	 * expression.
	 * 
	 * @param aFilterExpression
	 *            An expression to hide elements in the viewer.
	 */
	public CoreExpressionFilter(Expression aFilterExpression) {
		filterExpression = aFilterExpression;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer,
	 *      java.lang.Object, java.lang.Object)
	 */
	public boolean select(Viewer viewer, Object parentElement, Object element) {
		try {
			IEvaluationContext context = NavigatorPlugin.getEvalContext(element);
			return (filterExpression.evaluate(context) != EvaluationResult.TRUE);
		} catch (CoreException e) {
			NavigatorPlugin.logError(0, e.getMessage(), e);
		}
		return true;
	}
}