Skip to main content
Jump to: navigation, search

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

(org.eclipse.emf.search.ui.modelSearchPageActionContribution)
(org.eclipse.emf.search.ui.modelSearchPageActionContribution)
 
Line 8: Line 8:
 
  * '''targetMetaModelID''' - target meta model ID for which action has to be contextually displayed
 
  * '''targetMetaModelID''' - target meta model ID for which action has to be contextually displayed
 
  * '''icon''' - action icon
 
  * '''icon''' - action icon
 +
 +
<source lang='xml'>
 +
<extension
 +
        point="org.eclipse.emf.search.ui.modelSearchPageActionContribution">
 +
      <!-- Navigation Actions -->
 +
      <actionContribution
 +
            action="org.eclipse.emf.search.genmodel.ui.actions.GoToGeneratedCodeAction"
 +
            id="org.eclipse.emf.search.genmodel.ui.GoToCodeActionContribution"
 +
targetMetaModelID="http://www.eclipse.org/emf/2002/GenModel"
 +
targetMenuID="org.eclipse.emf.search.genmodel.ui.menu.GenModelNavigation">
 +
      </actionContribution>
 +
      <actionContribution
 +
            action="org.eclipse.emf.search.genmodel.ui.actions.GoToEcoreMetaModelAction"
 +
            id="org.eclipse.emf.search.genmodel.ui.GoToEcoreMetaModelActionContribution"
 +
targetMetaModelID="http://www.eclipse.org/emf/2002/GenModel"
 +
targetMenuID="org.eclipse.emf.search.genmodel.ui.menu.GenModelNavigation">
 +
      </actionContribution>
 +
</extension>
 +
</source>

Latest revision as of 09:34, 25 April 2008

org.eclipse.emf.search.ui.modelSearchPageActionContribution

Users wanting to contribute custom actions to model search result page must use this extnsion point.

* action - org.eclipse.emf.search.ui.actions.AbstractModelSearchPageAction
* id - unique model search result page action ID
* targetMenuID - already contributed model search page result menu ID
* targetMetaModelID - target meta model ID for which action has to be contextually displayed
* icon - action icon
 <extension
         point="org.eclipse.emf.search.ui.modelSearchPageActionContribution">
      <!-- Navigation Actions -->
      <actionContribution
            action="org.eclipse.emf.search.genmodel.ui.actions.GoToGeneratedCodeAction"
            id="org.eclipse.emf.search.genmodel.ui.GoToCodeActionContribution"
			targetMetaModelID="http://www.eclipse.org/emf/2002/GenModel"
			targetMenuID="org.eclipse.emf.search.genmodel.ui.menu.GenModelNavigation">
      </actionContribution>
      <actionContribution
            action="org.eclipse.emf.search.genmodel.ui.actions.GoToEcoreMetaModelAction"
            id="org.eclipse.emf.search.genmodel.ui.GoToEcoreMetaModelActionContribution"
			targetMetaModelID="http://www.eclipse.org/emf/2002/GenModel"
			targetMenuID="org.eclipse.emf.search.genmodel.ui.menu.GenModelNavigation">
      </actionContribution>
 </extension>

Back to the top