public class Storage2UriMapperJavaImpl extends 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 |
asyncInitializeCache()
Schedules cache initialization to be performed in the background.
|
void |
elementChanged(org.eclipse.jdt.core.ElementChangedEvent event) |
Map<org.eclipse.emf.common.util.URI,org.eclipse.core.resources.IStorage> |
getAllEntries(org.eclipse.jdt.core.IPackageFragmentRoot root) |
protected Object |
getLastModified(org.eclipse.core.resources.IResource resource) |
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 |
setJavaProjectClasspathChangeAnalyzer(JavaProjectClasspathChangeAnalyzer javaProjectClasspathChangeAnalyzer)
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
|
void |
setWorkspace(org.eclipse.core.resources.IWorkspace workspace) |
public void setJdtHelper(IJdtHelper jdtHelper)
public void setLocator(JarEntryLocator locator)
public void setJavaProjectClasspathChangeAnalyzer(JavaProjectClasspathChangeAnalyzer javaProjectClasspathChangeAnalyzer)
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 Map<org.eclipse.emf.common.util.URI,org.eclipse.core.resources.IStorage> getAllEntries(org.eclipse.jdt.core.IPackageFragmentRoot root)
getAllEntries in interface IStorage2UriMapperJdtExtensionsIPackageFragmentRootprotected Object getLastModified(org.eclipse.core.resources.IResource resource) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionprotected Storage2UriMapperJavaImpl.PackageFragmentRootData initializeData(org.eclipse.jdt.core.IPackageFragmentRoot root)
public 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 setWorkspace(org.eclipse.core.resources.IWorkspace workspace)
public void initializeCache()
IStorage2UriMapperContributioninitializeCache in interface IStorage2UriMapperContributionpublic void asyncInitializeCache()
Copyright © 2016. All Rights Reserved.