Adding to the Refactor menus [message #253899] |
Thu, 12 June 2008 19:00 |
Eclipse User |
|
|
|
Originally posted by: lancewalton1.mac.com
Hi all.
I have written a new refactoring but I cannot add it to the Refactor menu
in the menu bar and to the Refactor menu item in the Java Editor context
menu (I can get it added to the Java Editor context menu easily enough).
This question has come up before and I've tried to do what previous
answers have said (recreate the structure of the Refactor menu) but this
does not seem to help.
If someone could tell me what to do in my plugin.xml (see below), I'd be
very grateful. I'm running on Ganymede.
Many thanks,
Lance
----
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.jdt.ui.category.refactoring"
description="Hide access to a chain of delegates"
id="com.stateofflow.eclipse.refactor.command"
name="Hide Delegate">
</command>
</extension>
<extension
point="org.eclipse.ui.popupMenus">
<viewerContribution
id="com.stateofflow.eclipse.refactor.popupmenu"
targetID="#CompilationUnitEditorContext">
<action
class=" com.stateofflow.eclipse.refactor.hidedelegate.ui.HideDelegat eAction "
definitionId="com.stateofflow.eclipse.refactor.command"
id="com.stateofflow.eclipse.refactor.action"
label="Hide Delegate..."
menubarPath="additions">
</action>
</viewerContribution>
</extension>
<extension
point="org.eclipse.ui.actionSets">
<actionSet
label="%CodingActionSet.label"
description="%CodingActionSet.description"
visible="false"
id="org.eclipse.jdt.ui.CodingActionSet">
<menu
label="%Refactoring.menu.label"
path="edit"
id="org.eclipse.jdt.ui.refactoring.menu">
<separator name="undoRedoGroup"/>
<separator name="reorgGroup"/>
<separator name="codingGroup"/>
<separator name="reorgGroup2"/>
<separator name="typeGroup"/>
<separator name="typeGroup2"/>
<separator name="codingGroup2"/>
<separator name="typeGroup3"/>
<separator name="scriptGroup"/>
</menu>
<action
definitionId="com.stateofflow.eclipse.refactor.command"
label="Hide Delegate..."
retarget="true"
menubarPath="org.eclipse.jdt.ui.refactoring.menu/codingGroup "
id="com.stateofflow.eclipse.refactor.action.menu">
</action>
</actionSet>
</extension>
</plugin>
|
|
|
Powered by
FUDForum. Page generated in 0.05553 seconds