public class Storage2UriMapperJavaImpl extends java.lang.Object implements IStorage2UriMapperJdtExtensions, IStorage2UriMapperContribution, org.eclipse.jdt.core.IElementChangedListener
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Storage2UriMapperJavaImpl.PackageFragmentRootData  | 
| Constructor and Description | 
|---|
Storage2UriMapperJavaImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
elementChanged(org.eclipse.jdt.core.ElementChangedEvent event)  | 
java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.core.resources.IStorage> | 
getAllEntries(org.eclipse.jdt.core.IPackageFragmentRoot root)  | 
java.lang.Iterable<Pair<org.eclipse.core.resources.IStorage,org.eclipse.core.resources.IProject>> | 
getStorages(org.eclipse.emf.common.util.URI uri)
Returns all the pairs of  
IStorage and IProject that map to
 the given URI, e.g. if the uri points to an archive file that is 
 used by different projects, all known references should be returned. | 
org.eclipse.emf.common.util.URI | 
getUri(org.eclipse.core.resources.IStorage storage)
Returns the URI for the given storage or  
null if this contribution
 does no handle the storage explicitly. | 
Pair<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> | 
getURIMapping(org.eclipse.jdt.core.IPackageFragmentRoot root)  | 
void | 
initializeCache()
Initialize any local caching. 
 | 
protected Storage2UriMapperJavaImpl.PackageFragmentRootData | 
initializeData(org.eclipse.jdt.core.IPackageFragmentRoot root)  | 
boolean | 
isRejected(org.eclipse.core.resources.IFolder folder)
Rejects Java output folders when traversing a project. 
 | 
void | 
setHost(IStorage2UriMapper host)
Public for testing purpose 
 | 
void | 
setJdtHelper(IJdtHelper jdtHelper)
Public for testing purpose 
 | 
void | 
setLocator(JarEntryLocator locator)
Public for testing purpose 
 | 
void | 
setUriValidator(UriValidator uriValidator)
Public for testing purpose 
 | 
public void setJdtHelper(IJdtHelper jdtHelper)
public void setLocator(JarEntryLocator locator)
public void setUriValidator(UriValidator uriValidator)
public void setHost(IStorage2UriMapper host)
public boolean isRejected(org.eclipse.core.resources.IFolder folder)
isRejected in interface IStorage2UriMapperContributiontrue if the folder is a java output folder. Otherwise false.public Pair<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> getURIMapping(org.eclipse.jdt.core.IPackageFragmentRoot root) throws org.eclipse.jdt.core.JavaModelException
getURIMapping in interface IStorage2UriMapperJdtExtensionsURI mapping for the given IPackageFragmentRoot. The first entry in the pair is the possibly logical URI, the second the physical one.org.eclipse.jdt.core.JavaModelExceptionpublic java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.core.resources.IStorage> getAllEntries(org.eclipse.jdt.core.IPackageFragmentRoot root)
getAllEntries in interface IStorage2UriMapperJdtExtensionsIPackageFragmentRootprotected Storage2UriMapperJavaImpl.PackageFragmentRootData initializeData(org.eclipse.jdt.core.IPackageFragmentRoot root)
public java.lang.Iterable<Pair<org.eclipse.core.resources.IStorage,org.eclipse.core.resources.IProject>> getStorages(org.eclipse.emf.common.util.URI uri)
IStorage2UriMapperContributionIStorage and IProject that map to
 the given URI, e.g. if the uri points to an archive file that is 
 used by different projects, all known references should be returned.getStorages in interface IStorage2UriMapperContributionpublic org.eclipse.emf.common.util.URI getUri(org.eclipse.core.resources.IStorage storage)
IStorage2UriMapperContributionnull if this contribution
 does no handle the storage explicitly.getUri in interface IStorage2UriMapperContributionpublic void elementChanged(org.eclipse.jdt.core.ElementChangedEvent event)
elementChanged in interface org.eclipse.jdt.core.IElementChangedListenerpublic void initializeCache()
IStorage2UriMapperContributioninitializeCache in interface IStorage2UriMapperContribution