Skip to content

Instantly share code, notes, and snippets.

@misto
Created March 16, 2016 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misto/e572c73d4c38d0a197ab to your computer and use it in GitHub Desktop.
Save misto/e572c73d4c38d0a197ab to your computer and use it in GitHub Desktop.
Adding an entry to Eclipse's Search Menu
<extension point="org.eclipse.ui.actionSets">
<actionSet
description="Scaps Search Actions"
id="org.scala-search.actionSet"
label="Scaps Search Actions"
visible="true">
<menu
label="Search"
path="navigate"
id="org.eclipse.search.menu">
<groupMarker name="internalDialogGroup"/> <!-- not to be used by clients -->
<groupMarker name="dialogGroup"/> <!-- to be used by clients -->
<separator name="fileSearchContextMenuActionsGroup"/> <!-- to be used by clients -->
<separator name="contextMenuActionsGroup"/> <!-- to be used by clients -->
<separator name="occurencesActionsGroup"/> <!-- to be used by clients -->
<separator name="extraSearchGroup"/> <!-- to be used by clients -->
</menu>
<action
class="TestAction"
enablesFor="*"
id="org.scala-refactoring.actions.OpenScalaSearchDialog"
label="Scala..."
menubarPath="org.eclipse.search.menu/dialogGroup"
style="push">
</action>
</actionSet>
</extension>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment