/*******************************************************************************
 * Copyright (c) 2009 itemis AG (http://www.itemis.eu) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/
package org.eclipse.xtext.resource;

import java.util.Collections;

import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.util.URI;

/**
 * Represents an observable set of {@link IResourceDescription}
 * 
 * @author Sebastian Zarnekow - Initial contribution and API
 */
public interface IResourceDescriptions {

	Iterable<IResourceDescription> getAllResourceDescriptions();

	IResourceDescription getResourceDescription(URI uri);

	/**
	 * A context aware instance {@link IResourceDescriptions}.
	 * Needs to be configured with the current context before used.
	 * 
	 * @author Sven Efftinge - Initial contribution and API
	 */
	interface IContextAware extends IResourceDescriptions {
		
		void setContext(Notifier ctx);
	}
	
	class NullImpl implements IResourceDescriptions {

		public Iterable<IResourceDescription> getAllResourceDescriptions() {
			return Collections.emptyList();
		}

		public IResourceDescription getResourceDescription(URI uri) {
			return null;
		}

	}
}

@@ -648,20 +648,8 @@
 ts a
-n observable
  set
@@ -746,16 +746,72 @@
 and API%0A
+ * @author Sven Efftinge - Initial contribution and API%0A
  */%0Apubl
@@ -1101,70 +1101,8 @@
 ed.%0A
-%09 * %0A%09 * @author Sven Efftinge - Initial contribution and API%0A
 %09 */

Fix in Javadoc of IResourceDescriptions