public class Storage2UriMapperJavaImpl extends Storage2UriMapperImpl implements IStorage2UriMapperJdtExtensions, IStorage2UriMapperExtension
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)
Find the storages that can be mapped to the given URI.
|
Pair<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> |
getURIMapping(org.eclipse.jdt.core.IPackageFragmentRoot root) |
void |
initializeCache() |
protected org.eclipse.xtext.ui.resource.Storage2UriMapperJavaImpl.PackageFragmentRootData |
initializeData(org.eclipse.jdt.core.IPackageFragmentRoot root) |
protected org.eclipse.emf.common.util.URI |
internalGetUri(org.eclipse.core.resources.IStorage storage) |
protected boolean |
isHandled(org.eclipse.core.resources.IFolder folder)
Ignores Java output folders when traversing a project.
|
void |
setJdtHelper(IJdtHelper jdtHelper) |
void |
setLocator(JarEntryLocator locator) |
void |
setUriValidator(UriValidator uriValidator) |
getAllEntries, getUri, getWorkspaceRoot, isValidUri, resourceChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllEntries, getUri
public void setUriValidator(UriValidator uriValidator)
setUriValidator
in class Storage2UriMapperImpl
public void setJdtHelper(IJdtHelper jdtHelper)
public void setLocator(JarEntryLocator locator)
protected boolean isHandled(org.eclipse.core.resources.IFolder folder)
isHandled
in class Storage2UriMapperImpl
false
if the folder is a java output folder. Otherwise true
.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 org.eclipse.xtext.ui.resource.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)
IStorage2UriMapper
IStorage
associated with one IProject
but
in the case that the same external class folder or jar is referenced in
multiple projects multiple IStorage
s are returned.getStorages
in interface IStorage2UriMapper
getStorages
in class Storage2UriMapperImpl
uri
- the URI
. May not be null
.null
.protected org.eclipse.emf.common.util.URI internalGetUri(org.eclipse.core.resources.IStorage storage)
internalGetUri
in class Storage2UriMapperImpl
@Deprecated public void elementChanged(org.eclipse.jdt.core.ElementChangedEvent changeEvent)
public void initializeCache()
initializeCache
in interface IStorage2UriMapperExtension