Viewer Contribution [message #553858] |
Thu, 19 August 2010 08:29  |
Eclipse User |
|
|
|
Hi, i am adding my new refactoring (Inline Class) to Eclipse and i can`t add it to the java editor context in the refactor menu. why???
I have added it to main manu bar and to explorer package context without problems.
This is the viewer contribution (file plugin.xml):
<viewerContribution
id="es.uva.infor.pfc.eclipse.inlineclass.ui.editor"
targetID="org.eclipse.jdt.ui.CompilationUnitEditor.EditorContext">
<menu
id="org.eclipse.jdt.ui.refactoring.menu"
label="Refactor"
path="group.reorganize">
<separator
name="fowler">
</separator>
</menu>
<menu
id="FowlerCatalogue"
label="Fowler Catalogue"
path="org.eclipse.jdt.ui.refactoring.menu/fowler">
<separator
name="inlineclass">
</separator>
</menu>
<action
class="es.uva.infor.pfc.eclipse.inlineclass.ui.actions.javaeditor.InlineClassEditorAction"
definitionId="es.uva.infor.pfc.eclipse.inlineclass.ui.action.InlineClassAction"
id="es.uva.infor.pfc.eclipse.inlineclass.ui.action.editor.InlineClass"
label="Inline Class..."
menubarPath="org.eclipse.jdt.ui.refactoring.menu/FowlerCatalogue/inlineclass">
</action>
</viewerContribution>
My refactoring is not shown in the java editor context, but if i use "path=additions" it works perfectly, but i want that my refactoring appears in the Refactor menu (Refactor->Fowler Catalogue->Inline Class...).
Help please.
[Updated on: Thu, 19 August 2010 09:15] by Moderator Report message to a moderator
|
|
|
|
Re: Viewer Contribution [message #553922 is a reply to message #553858] |
Thu, 19 August 2010 12:33   |
Eclipse User |
|
|
|
Thanks but I need a submenu to have more localized potential refactorings of Fowler Catalogue that may be appearing in the future.
I still can not make it work. In the way you say to me doesn't work.
It is possible to do it???
I only get problems adding this refactoring (throw a viewer contribution) to the Java Editor Context.
[Updated on: Thu, 19 August 2010 12:37] by Moderator Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02739 seconds