Jump to: navigation, search

EMF Search UI Extensibility---org.eclipse.emf.search.ui.modelSearchQueryTab

Revision as of 08:43, 25 April 2008 by Lucas.bigeardel.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

org.eclipse.emf.search.ui.modelSearchQueryTab

Users wanting to contribute a query tab into the model search pages must extend modelSearchQueryTab. As a result users would be able to define Text queries input.

* queryCompositeAreaFactory - IModelSearchAreaFactory implementation which intends to create a Composite that would be the user defined query editor/input area.
* id - ID to be reused by other extensions in order to refer to this query Tab.
* label - A pertinent localized name to be displayed in the query tab.
* tooltip - A pertinent localized name to be displayed as tooltip of the tab.
* index - 0 based index where the tab will tentatively be inserted.
* image - A meaningfull query image to be displayed in the defined query tab.
* targetSearchPageID - An existing target search page ID the user wants to contribute his queryTab to.


   <extension
         point="org.eclipse.emf.search.ui.modelSearchQueryTab">
      <queryTab
            id="search.ui.MoviesDbPlainTextSearchID"
            image="icons/textQuery.gif"
            index="0"
            label="%ModelSearchParticipantArea.MoviesDbPlainTextSearchExtPoint.Label"
            queryCompositeAreaFactory="org.eclipse.emf.search.ecore.ui.factories.EcoreTextModelSearchQueryAreaFactory"
            targetSearchPageID="search.ui.pages.MoviesDbModelSearchPageID"
            tooltip="%MoviesDbPlainTextSearchExtPoint.Tooltip"/>
   </extension>