public class Storage2UriMapperImpl extends Object implements IStorage2UriMapperExtension
| Constructor and Description |
|---|
Storage2UriMapperImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<org.eclipse.emf.common.util.URI,org.eclipse.core.resources.IStorage> |
getAllEntries(org.eclipse.core.resources.IContainer container) |
IStorage2UriMapperContribution |
getContribution()
Public for testing purpose
|
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.
|
org.eclipse.emf.common.util.URI |
getUri(org.eclipse.core.resources.IStorage storage)
Returns the URI for the given
IStorage or null if no valid URI exists. |
protected org.eclipse.core.resources.IWorkspaceRoot |
getWorkspaceRoot() |
void |
initializeCache() |
protected boolean |
isHandled(org.eclipse.core.resources.IFolder folder)
Return
true if the folder should be traversed. |
boolean |
isValidUri(org.eclipse.emf.common.util.URI uri,
org.eclipse.core.resources.IStorage storage) |
void |
setContribution(IStorage2UriMapperContribution contribution)
Public for testing purpose
|
void |
setUriValidator(UriValidator uriValidator) |
public final void setUriValidator(UriValidator uriValidator)
public void setContribution(IStorage2UriMapperContribution contribution)
public IStorage2UriMapperContribution getContribution()
public void initializeCache()
initializeCache in interface IStorage2UriMapperExtensionpublic Map<org.eclipse.emf.common.util.URI,org.eclipse.core.resources.IStorage> getAllEntries(org.eclipse.core.resources.IContainer container)
getAllEntries in interface IStorage2UriMapperprotected boolean isHandled(org.eclipse.core.resources.IFolder folder)
true if the folder should be traversed. False otherwise.
Defaults to true for all folders.true if the folder should be traversed. False otherwise.public Iterable<Pair<org.eclipse.core.resources.IStorage,org.eclipse.core.resources.IProject>> getStorages(org.eclipse.emf.common.util.URI uri)
IStorage2UriMapperIStorage 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.getStorages in interface IStorage2UriMapperuri - the URI. May not be null.null.protected org.eclipse.core.resources.IWorkspaceRoot getWorkspaceRoot()
public org.eclipse.emf.common.util.URI getUri(org.eclipse.core.resources.IStorage storage)
IStorage2UriMapperIStorage or null if no valid URI exists.getUri in interface IStorage2UriMapperIStorage or null.public boolean isValidUri(org.eclipse.emf.common.util.URI uri,
org.eclipse.core.resources.IStorage storage)
Copyright © 2016. All Rights Reserved.