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.modelSearchParticipantTab"

(New page: = org.eclipse.emf.search.ui.modelSearchParticipantTab = Contributes a new Participant Composite to the Model Search Dialog. As a result a new Tab item is added in the participants Tab fol...)
 
(org.eclipse.emf.search.ui.modelSearchParticipantTab)
Line 2: Line 2:
  
 
Contributes a new Participant Composite to the Model Search Dialog. As a result a new Tab item is added in the participants Tab folder.
 
Contributes a new Participant Composite to the Model Search Dialog. As a result a new Tab item is added in the participants Tab folder.
 +
  
 
  * '''label''' - A pertinent localized name to be displayed in the participant Tab Item.
 
  * '''label''' - A pertinent localized name to be displayed in the participant Tab Item.
Line 12: Line 13:
 
  * '''image''' - A meaningfull particpant image to be displayed in the defined query tab.
 
  * '''image''' - A meaningfull particpant image to be displayed in the defined query tab.
 
  * '''targetSearchPageID''' - An existing target search page ID the user wants to contribute his participantTab to.
 
  * '''targetSearchPageID''' - An existing target search page ID the user wants to contribute his participantTab to.
 +
 +
<source lang="xml">
 +
  <extension
 +
        point="org.eclipse.emf.search.ui.modelSearchParticipantTab">
 +
       
 +
      <participantTab
 +
            elementComposeableAdapterFactory="search.ui.providers.AllElementsItemProviderAdapterFactory"
 +
            elementModelEditorSelectionHandler="search.ui.handlers.EditorSelectionHandler"
 +
            id="org.eclipse.emf.search.tests.moviesAllElementsParticipantTab"
 +
            image="icons/esearch.gif"
 +
            index="1"
 +
            label="%ModelSearchParticipantArea.AllElementsParticipantTab.Label"
 +
            participantCompositeAreaFactory="search.ui.factories.ModelSearchParticipantAreaFactory"
 +
            targetSearchPageID="search.ui.pages.MoviesDbModelSearchPageID"
 +
            targetNsURI=""
 +
            tooltip="%ModelSearchParticipantArea.AllElementsParticipantTab.Tooltip">
 +
      </participantTab>
 +
</extension>
 +
</source>

Revision as of 09:39, 25 April 2008

org.eclipse.emf.search.ui.modelSearchParticipantTab

Contributes a new Participant Composite to the Model Search Dialog. As a result a new Tab item is added in the participants Tab folder.


* label - A pertinent localized name to be displayed in the participant Tab Item.
* participantCompositeAreaFactory - IModelSearchAreaFactory API implementation which responsability is to expose meta elements participant possible choices to user. A possible meta elements Checkbox Tree Viewer is decorated from the EMF edit ComposeableFactory created from ComposeableAdapterFactory.
* index - 0 based index where the tab will tentatively be inserted.
* id - ID to be reused by other extensions in order to refer to this particpant Tab.
* tooltip - A pertinent localized name to be displayed as tooltip of the participant tab.
* elementComposeableAdapterFactory - User wanting to display elements accordingly to their EMF based model must provide an instance of ComposeableAdapterFactory. This AdapterFactory will be in charge to display elements label and image.
* elementModelEditorSelectionHandler - Users must implement IModelElementEditorSelectionHandler APIs in order to describe the way they want a search result selection to be handled.
* image - A meaningfull particpant image to be displayed in the defined query tab.
* targetSearchPageID - An existing target search page ID the user wants to contribute his participantTab to.
   <extension
         point="org.eclipse.emf.search.ui.modelSearchParticipantTab">
 
       <participantTab
            elementComposeableAdapterFactory="search.ui.providers.AllElementsItemProviderAdapterFactory"
            elementModelEditorSelectionHandler="search.ui.handlers.EditorSelectionHandler"
            id="org.eclipse.emf.search.tests.moviesAllElementsParticipantTab"
            image="icons/esearch.gif"
            index="1"
            label="%ModelSearchParticipantArea.AllElementsParticipantTab.Label"
            participantCompositeAreaFactory="search.ui.factories.ModelSearchParticipantAreaFactory"
            targetSearchPageID="search.ui.pages.MoviesDbModelSearchPageID"
            targetNsURI=""
            tooltip="%ModelSearchParticipantArea.AllElementsParticipantTab.Tooltip">
      </participantTab>
 </extension>

Back to the top