Bug 68586 [implementation] Reconciling should be more robust
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
* resource hierarchy is iterated towards the workspace root to find the
	 * first parent of <code>toCreateOrModify</code> that exists. Then the
	 * 'create' rule for the last non-existing resource is returned.
	 * <p>
	 * XXX This is a workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=67601
	 * IResourceRuleFactory.createRule should iterate the hierarchy itself. 
	 * </p>
	 * <p> 
	 * XXX to be replaced by call to TextFileDocumentProvider.computeSchedulingRule after 3.0
	 * </p>
	 * 
	 * @param toCreateOrModify the resource to create or modify
	 * @return the minimal scheduling rule needed to modify or create a resource
	 */
	private ISchedulingRule computeSchedulingRule(IResource toCreateOrModify) {
		IResourceRuleFactory factory= ResourcesPlugin.getWorkspace().getRuleFactory();
		if (toCreateOrModify.exists()) {
			return factory.modifyRule(toCreateOrModify);
		} else {
			IResource parent= toCreateOrModify;
			do {
				toCreateOrModify= parent;
				parent= toCreateOrModify.getParent();
			} while (parent != null && !parent.exists());
			
			return factory.createRule(toCreateOrModify);
		}
	}
}