Skip to content

Instantly share code, notes, and snippets.

@reprogrammer
Created August 4, 2012 23:56
Show Gist options
  • Save reprogrammer/3260685 to your computer and use it in GitHub Desktop.
Save reprogrammer/3260685 to your computer and use it in GitHub Desktop.
adding an item to the JDT Refactor menu.
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="menu:org.eclipse.jdt.ui.refactoring.menu?after=typeGroup">
<command
commandId="mycommandid"
label="mycommandlabel">
</command>
</menuContribution>
</extension>
<extension point="org.eclipse.ui.commands">
<command
id="mycommandid"
name="mycommandname">
</command>
</extension>
<extension point="org.eclipse.ui.handlers">
<handler
class="MyHandlerClass"
commandId="mycommandid">
</handler>
</extension>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment