Package com._1c.g5.v8.dt.core.platform
Interface IResourceLookup
-
public interface IResourceLookup
The resource lookup allows clients to lookup workspace resources by model objects, model resources or modelURI
.Resource lookup is aware of platfrom and BM model objects and
URI
s and is able to process them.- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDtProject
getDtProject(org.eclipse.emf.common.util.URI uri)
Returns project which contains object with providedURI
.IDtProject
getDtProject(org.eclipse.emf.ecore.EObject object)
Returns project which contains object with provided model object.IDtProject
getDtProject(org.eclipse.emf.ecore.resource.Resource resource)
Returns project which contains object with provided model object resource.org.eclipse.core.resources.IFile
getPlatformResource(org.eclipse.emf.common.util.URI resourceUri)
Returns workspace resourceIFile
which contains object with provided model objectURI
.org.eclipse.core.resources.IFile
getPlatformResource(org.eclipse.emf.ecore.EObject object)
Returns workspace resourceIFile
which contains the provided model object.org.eclipse.core.resources.IFile
getPlatformResource(org.eclipse.emf.ecore.resource.Resource resource)
Returns workspace resourceIFile
which contains the provided model resource.org.eclipse.emf.common.util.URI
getPlatformResourceUri(org.eclipse.emf.ecore.EObject object)
Returns platform resourceURI
for the provided model object.org.eclipse.core.resources.IProject
getProject(org.eclipse.emf.common.util.URI uri)
Returns project which contains object with providedURI
.org.eclipse.core.resources.IProject
getProject(org.eclipse.emf.ecore.EObject object)
Returns project which contains object with provided model object.org.eclipse.core.resources.IProject
getProject(org.eclipse.emf.ecore.resource.Resource resource)
Returns project which contains object with provided model object resource.
-
-
-
Method Detail
-
getPlatformResourceUri
org.eclipse.emf.common.util.URI getPlatformResourceUri(org.eclipse.emf.ecore.EObject object)
Returns platform resourceURI
for the provided model object. Can returnnull
if model object does not have associated platformURI
.- Parameters:
object
- the model object, cannot benull
- Returns:
- the platform resource
URI
for the provided model object ornull
if object does not have associated platformURI
-
getPlatformResource
org.eclipse.core.resources.IFile getPlatformResource(org.eclipse.emf.ecore.EObject object)
Returns workspace resourceIFile
which contains the provided model object. Can returnnull
if workspace resource file not found.- Parameters:
object
- the model object, cannot benull
- Returns:
- the file which contains the provided model object, or
null
if model object is out of any file
-
getPlatformResource
org.eclipse.core.resources.IFile getPlatformResource(org.eclipse.emf.ecore.resource.Resource resource)
Returns workspace resourceIFile
which contains the provided model resource. Can returnnull
if workspace resource file not found.- Parameters:
object
- the model resource, cannot benull
- Returns:
- the file which contains the provided model resource, or
null
if model resource is out of any file
-
getPlatformResource
org.eclipse.core.resources.IFile getPlatformResource(org.eclipse.emf.common.util.URI resourceUri)
Returns workspace resourceIFile
which contains object with provided model objectURI
. Can returnnull
if file not found.- Parameters:
uri
- the objectURI
, cannot benull
- Returns:
- the file which contains object with provided
URI
ornull
if object is out of any file
-
getProject
org.eclipse.core.resources.IProject getProject(org.eclipse.emf.common.util.URI uri)
Returns project which contains object with providedURI
. Can returnnull
if project not found.- Parameters:
uri
- the objectURI
, cannot benull
- Returns:
- the project which contains object with provided
URI
ornull
if object is out of any project
-
getProject
org.eclipse.core.resources.IProject getProject(org.eclipse.emf.ecore.EObject object)
Returns project which contains object with provided model object. Can returnnull
if project not found.- Parameters:
object
- the model object, cannot benull
- Returns:
- the project which contains object with provided model object, or
null
if model object is out of any project
-
getDtProject
IDtProject getDtProject(org.eclipse.emf.ecore.EObject object)
Returns project which contains object with provided model object. Can returnnull
if project not found.- Parameters:
object
- the model object, cannot benull
- Returns:
- the project which contains object with provided model object, or
null
if model object is out of any project
-
getDtProject
IDtProject getDtProject(org.eclipse.emf.ecore.resource.Resource resource)
Returns project which contains object with provided model object resource. Can returnnull
if project not found.- Parameters:
resource
- the model resource, cannot benull
- Returns:
- the
IDtProject
which contains object with provided model object resource, ornull
if model resource is out of any project
-
getDtProject
IDtProject getDtProject(org.eclipse.emf.common.util.URI uri)
Returns project which contains object with providedURI
. Can returnnull
if project not found. This method returnsIDtProject
only for active workspace DT projects and not overlay/virtual ones (as URI it's doesn't provide enough resolution for their addressing)- Parameters:
uri
- the objectURI
, cannot benull
- Returns:
- the project which contains object with provided
URI
ornull
if object is out of any project
-
getProject
org.eclipse.core.resources.IProject getProject(org.eclipse.emf.ecore.resource.Resource resource)
Returns project which contains object with provided model object resource. Can returnnull
if project not found.- Parameters:
resource
- the model resource, cannot benull
- Returns:
- the project which contains object with provided model object resource, or
null
if model resource is out of any project
-
-