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/actions/CommonActionProviderDescriptor.java
} else {
			IEvaluationContext context = null;
			IEvaluationContext parentContext = NavigatorPlugin.getApplicationContext();
			Iterator elements = aStructuredSelection.iterator();
			while (elements.hasNext()) {
				context = new EvaluationContext(parentContext, elements.next());
				context.setAllowPluginActivation(true);
				try { 
					if (enablement.evaluate(context) != EvaluationResult.TRUE) {
						return false;
					}
				} catch (CoreException e) {
					NavigatorPlugin.log(IStatus.ERROR, 0, e.getMessage(), e);
					return false;
				}
			}
		}
		return true;
	}
	/**
	 * Determine if this content extension is enabled for the given element.
	 * 
	 * @param anElement
	 *            The element that should be used for the evaluation.
	 * @return True if and only if the extension is enabled for the element.
	 */
	public boolean isEnabledFor(Object anElement) {
		if (enablement == null || anElement == null) {
			return false;
		}