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 11: Line 11:
  
  
<code lang='xml'>
+
<source lang="xml">
 
<plugin>
 
<plugin>
 
   <extension
 
   <extension
Line 23: Line 23:
 
   </extension>
 
   </extension>
 
</plugin>
 
</plugin>
</code>
+
</source>

Revision as of 13:19, 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>

Copyright © Eclipse Foundation, Inc. All Rights Reserved.