Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Adding an item to the Source/generateGroup????(plugin eclipse editorcontribution)
Adding an item to the Source/generateGroup???? [message #515126] Wed, 17 February 2010 19:39
sheamus  is currently offline sheamus Friend
Messages: 14
Registered: September 2009
Junior Member
Hello,

I am trying to add an action to the Source menu, in the group with the generate getter/setter.

I can get my action to appear in the edit menu, if I set menubarPath="edit/editEnd", but I can't seem to get it into the source menu.

I examined the plugin.xml from org.eclipse.jdt.ui.jar. The getter an setter actions in there use menubarPath="org.eclipse.jdt.ui.source.menu/generateGroup". But when I try that, my action does not show up at all.

The following is my my plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

   <extension
         point="org.eclipse.ui.editorActions">
      <editorContribution
			targetID="org.eclipse.jdt.ui.CompilationUnitEditor"
            id="BuilderPatternPlugin.actionSet">
         <action
               label="&amp;Sample Action"
               icon="icons/sample.gif"
               class="builderpatternplugin.actions.BuilderPatternAction"
               tooltip="Hello, Eclipse world"
               menubarPath="org.eclipse.jdt.ui.source.menu/generateGroup"
               id="builderpatternplugin.actions.BuilderPatternAction">
         </action>
      </editorContribution>
   </extension>

</plugin>


Thanks,
~S
Previous Topic:Target Platform and packed jar plugins (jar in jar)
Next Topic:Adding an item to the Source/generateGroup????
Goto Forum:
  


Current Time: Sat Apr 20 16:21:45 GMT 2024

Powered by FUDForum. Page generated in 0.02759 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top