public class Storage2UriMapperJavaImpl extends java.lang.Object implements IStorage2UriMapperJdtExtensions, IStorage2UriMapperContribution
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 changeEvent)
Deprecated.
|
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. |
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 IStorage2UriMapperContribution
true
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 IStorage2UriMapperJdtExtensions
URI
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.JavaModelException
public java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.core.resources.IStorage> getAllEntries(org.eclipse.jdt.core.IPackageFragmentRoot root)
getAllEntries
in interface IStorage2UriMapperJdtExtensions
IPackageFragmentRoot
protected 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)
IStorage2UriMapperContribution
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.getStorages
in interface IStorage2UriMapperContribution
public org.eclipse.emf.common.util.URI getUri(org.eclipse.core.resources.IStorage storage)
IStorage2UriMapperContribution
null
if this contribution
does no handle the storage explicitly.getUri
in interface IStorage2UriMapperContribution
@Deprecated public void elementChanged(org.eclipse.jdt.core.ElementChangedEvent changeEvent)
public void initializeCache()
IStorage2UriMapperContribution
initializeCache
in interface IStorage2UriMapperContribution