Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Adding an item to the Source/generateGroup????
Adding an item to the Source/generateGroup???? [message #604717] Wed, 17 February 2010 19:40
sheamus  is currently offline sheamus
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="&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:Adding an item to the Source/generateGroup????
Next Topic:Dynamic loading of jar files using custom classLoader
Goto Forum:
  


Current Time: Thu Oct 23 04:35:50 GMT 2014

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

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