Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2009 itemis AG ( 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 /
 package org.eclipse.xtext.ui.resource;
import  org.eclipse.core.resources.IContainer;
import  org.eclipse.core.resources.IProject;
import  org.eclipse.core.resources.IStorage;
A bi directional mapping service that allows to find the EMF URI for an IStorage and vice versa.

Sven Efftinge - Initial contribution and API
This interface is not intended to be implemented by clients.
public interface IStorage2UriMapper {

Find the storages that can be mapped to the given URI. It will typically be only one IStorage associated with one IProject but in the case that the same external class folder or jar is referenced in multiple projects multiple IStorages are returned.

uri the URI. May not be null.
IStorages corresponding to the given URI. Never null.
	Iterable<Pair<IStorage, IProject>> getStorages(URI uri);

Returns the URI for the given IStorage or null if no valid URI exists.

returns the URI for the given IStorage or null.
	URI getUri(IStorage storage);

	Map<URI, IStorage> getAllEntries(IContainer container);
New to GrepCode? Check out our FAQ X