public interface IIndexConfigurationManager
IIndexProvider
,
IIndexProviderFactory
,
IURIParser
,
IContentType
Modifier and Type | Field and Description |
---|---|
static IIndexConfigurationManager |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
doesIndexProviderExist(org.eclipse.core.runtime.content.IContentType contentType)
Checks if an index provider exists for specified content type
|
boolean |
doesIndexProviderExist(org.eclipse.emf.common.util.URI resourceURI)
Checks if an index provider exists for specified resource URI
|
boolean |
doesURIParserExist(java.lang.String scheme)
Checks if an URI parser exists for specified scheme
|
org.eclipse.core.runtime.content.IContentType |
getApplicableContentType(org.eclipse.core.resources.IFile file,
java.util.Collection<org.eclipse.core.runtime.content.IContentType> contentTypes)
Returns the applicable contentype from the specified content types.
|
org.eclipse.core.runtime.content.IContentType |
getApplicableContentType(org.eclipse.emf.common.util.URI resourceURI,
java.util.Collection<org.eclipse.core.runtime.content.IContentType> contentTypes)
Returns the applicable content type from the specified content types.
|
java.util.Collection<org.eclipse.core.runtime.content.IContentType> |
getIndexedContentTypes()
Returns the collection of indexed content types
|
IIndexProvider |
getIndexProvider(org.eclipse.emf.common.util.URI resourceURI)
Returns the
IIndexProvider for the specified resource URI. |
IIndexProviderFactory |
getIndexProviderFactory(org.eclipse.core.runtime.content.IContentType contentType)
Returns the
IIndexProviderFactory for the specified
content type. |
java.util.Collection<org.eclipse.emf.common.util.URI> |
getRegisteredIndexedURIs()
Returns the collection of statically registered URIs that are indexed
|
IURIParser |
getURIParser(java.lang.String scheme)
Returns the
IURIParser for the specified scheme. |
boolean |
isContentTypeIndexed(org.eclipse.core.runtime.content.IContentType contentType)
Checks if the specified content type is indexed
|
boolean |
isFeatureIndexed(org.eclipse.emf.ecore.EAttribute eAttribute)
Checks if the specified attribute feature is indexed
|
boolean |
isResourceIndexed(org.eclipse.emf.common.util.URI resourceURI)
Checks if the specified resource URI is indexed.
|
static final IIndexConfigurationManager INSTANCE
boolean isFeatureIndexed(org.eclipse.emf.ecore.EAttribute eAttribute)
eAttribute
- The attribute feature to checktrue
if feature is indexed, false
otherwiseboolean isContentTypeIndexed(org.eclipse.core.runtime.content.IContentType contentType)
contentType
- The content type to checktrue
if content type is indexed,
false
otherwiseboolean doesIndexProviderExist(org.eclipse.core.runtime.content.IContentType contentType)
contentType
- The content type to checktrue
if index provider exists, false
otherwiseboolean doesIndexProviderExist(org.eclipse.emf.common.util.URI resourceURI)
Checks if an index provider exists for specified resource URI
Note that this method will attempt to discover the content type of the provided URI by checking to see if it is in the workspace, if it is a statically registered resource or if it is a local file system file. If the URI is neither then this method returns false.
resourceURI
- The resource URI to checktrue
if index provider exists, false
otherwiseboolean doesURIParserExist(java.lang.String scheme)
scheme
- The scheme to checktrue
if URI parser exists, false
otherwisejava.util.Collection<org.eclipse.core.runtime.content.IContentType> getIndexedContentTypes()
java.util.Collection<org.eclipse.emf.common.util.URI> getRegisteredIndexedURIs()
URI
sIIndexProviderFactory getIndexProviderFactory(org.eclipse.core.runtime.content.IContentType contentType)
IIndexProviderFactory
for the specified
content type.contentType
- The content type to checknull
otherwiseIIndexProvider getIndexProvider(org.eclipse.emf.common.util.URI resourceURI)
Returns the IIndexProvider
for the specified resource URI.
Note that this method will attempt to discover the content type of the provided URI by checking to see if it is in the workspace, if it is a statically registered resource or if it is a local file system file. If the URI is neither then this method returns null.
resourceURI
- The resource URI to checknull
otherwiseIURIParser getURIParser(java.lang.String scheme)
IURIParser
for the specified scheme.scheme
- The scheme to checknull
otherwiseboolean isResourceIndexed(org.eclipse.emf.common.util.URI resourceURI)
Checks if the specified resource URI is indexed.
Note that the provided resource URI must reside within the workspace, in an plugin (or bundle) in the current runtime or a filesystem file.
resourceURI
- The given resource URItrue
if reosurce URI is indexed,
false
otherwiseorg.eclipse.core.runtime.content.IContentType getApplicableContentType(org.eclipse.core.resources.IFile file, java.util.Collection<org.eclipse.core.runtime.content.IContentType> contentTypes)
file
- The given filecontentTypes
- the list of content types or null
null
org.eclipse.core.runtime.content.IContentType getApplicableContentType(org.eclipse.emf.common.util.URI resourceURI, java.util.Collection<org.eclipse.core.runtime.content.IContentType> contentTypes)
Returns the applicable content type from the specified content types. If the specified content types is null then the registered content types are checked that support this resource.
Please note that this method can only be used for URI's that resolve to a workspace file, a file within a plugin (or bundle) within the current runtime or a local filesystem file.
resourceURI
- The URI of a resource whose content type is requiredcontentTypes
- the list of content types or null
null