Skip to main content
Jump to: navigation, search

Difference between revisions of "EMF Search Framework Extensibility---org.eclipse.emf.search.modelSearchEngine"

(org.eclipse.emf.search.modelSearchEngine)
(org.eclipse.emf.search.modelSearchEngine)
Line 9: Line 9:
 
  * '''queryParametersFactory''' - parameter factory compliant with IModelSearchQueryParametersFactory
 
  * '''queryParametersFactory''' - parameter factory compliant with IModelSearchQueryParametersFactory
 
  * '''modelResourceValidator''' - resource validator compliant with IModelSearchQueryParametersFactory and specializing AbstractModelResourceValidator
 
  * '''modelResourceValidator''' - resource validator compliant with IModelSearchQueryParametersFactory and specializing AbstractModelResourceValidator
 +
 +
 +
<code lang='xml'>
 +
<plugin>
 +
  <extension
 +
        point="org.eclipse.emf.search.modelSearchEngine">
 +
      <modelSearchEngine
 +
            id="search.MoviesDbSearchEngine"
 +
            label="MoviesDb Search Engine"
 +
            modelResourceValidator="search.engine.ModelResourceValidator"
 +
            queryParametersFactory="search.factories.ModelSearchQueryParametersFactory"
 +
            searchQueryFactory="search.factories.ModelSearchQueryFactory"/>
 +
  </extension>
 +
</plugin>
 +
</code>

Revision as of 13:17, 24 April 2008

org.eclipse.emf.search.modelSearchEngine

Users wanting to contribute an custom ecore metamodel based search should extends modelSearchEngine.

* id - model search engine unique ID
* label - Query label to be displayed as a prefix of in search result pages
* searchQueryFactory - This extension point element describes a model search engine compliant with org.eclipse.emf.search.providers.IModelSearchQueryFactory APIs.
* queryParametersFactory - parameter factory compliant with IModelSearchQueryParametersFactory
* modelResourceValidator - resource validator compliant with IModelSearchQueryParametersFactory and specializing AbstractModelResourceValidator


<plugin>

  <extension
        point="org.eclipse.emf.search.modelSearchEngine">
     <modelSearchEngine
           id="search.MoviesDbSearchEngine"
           label="MoviesDb Search Engine"
           modelResourceValidator="search.engine.ModelResourceValidator"
           queryParametersFactory="search.factories.ModelSearchQueryParametersFactory"
           searchQueryFactory="search.factories.ModelSearchQueryFactory"/>
  </extension>

</plugin>

Back to the top