Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EMF Search UI Extensibility---org.eclipse.emf.search.ui.modelSearchQueryTab"

(New page: = 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 d...)
 
(org.eclipse.emf.search.ui.modelSearchQueryTab)
 
Line 10: Line 10:
 
  * '''image''' - A meaningfull query image to be displayed in the defined query tab.
 
  * '''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.
 
  * '''targetSearchPageID''' - An existing target search page ID the user wants to contribute his queryTab to.
 +
 +
 +
<source lang="xml">
 +
  <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>
 +
</source>

Latest revision as of 09:43, 25 April 2008

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>

Back to the top