Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » editorActions and popupMenus replacement
editorActions and popupMenus replacement [message #901773] Tue, 14 August 2012 14:04 Go to next message
Jeff Doth is currently offline Jeff DothFriend
Messages: 10
Registered: January 2012
Junior Member
Hello,

I am using the extension points org.eclipse.ui.editorActions and org.eclipse.ui.popupMenus (as explained here) and ported my plugin to Juno.

Juno tells me that both extension points are now deprecated. Can somebody explain how I implement a ToggleBreackpoint Command the Juno way?

Thanks in advance
Re: editorActions and popupMenus replacement [message #901987 is a reply to message #901773] Wed, 15 August 2012 12:11 Go to previous messageGo to next message
Jeff Doth is currently offline Jeff DothFriend
Messages: 10
Registered: January 2012
Junior Member
Any help would be great.
Re: editorActions and popupMenus replacement [message #901994 is a reply to message #901773] Wed, 15 August 2012 12:29 Go to previous messageGo to next message
Joseph Carroll is currently offline Joseph CarrollFriend
Messages: 174
Registered: May 2012
Location: Milwaukee, WI
Senior Member

Jeff-

I guess I don't understand your question fully. First of all, the actions framework (AFAIK) is completely deprecated from a pure Eclipse4 standpoint. You should port all of your actions to commands.

What are you trying to use the ToggleBreakPoint extension-point for?

You might also want to consider asking your question on the list platform-debug-dev@eclipse.org (subscribe).

JD
Re: editorActions and popupMenus replacement [message #902000 is a reply to message #901994] Wed, 15 August 2012 12:56 Go to previous messageGo to next message
Jeff Doth is currently offline Jeff DothFriend
Messages: 10
Registered: January 2012
Junior Member
Hey JD,

thanks for your reply. Basically I have the following in my plugin.xml:
 <extension point="org.eclipse.ui.editorActions">
    <editorContribution
          targetID="example.editor"
          id="example.rulerActions">
       <action
             label="Not Used"
             class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
             style="push"
             actionID="RulerDoubleClick"
             id="example.doubleClickBreakpointAction"/>
    </editorContribution>
 </extension>

 <extension point="org.eclipse.ui.popupMenus">
   <viewerContribution
     targetID="example.rulerContextMenuId"
     id="example.RulerPopupActions">
       <action
         label="Toggle Breakpoint"
         class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
         menubarPath="additions"
         id="example.rulerContextMenu.toggleBreakpointAction">
       </action>
   </viewerContribution>

My question is how do I port the actions to commands? Do you have a page with port examples?
Re: editorActions and popupMenus replacement [message #902004 is a reply to message #902000] Wed, 15 August 2012 13:04 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
See http://wiki.eclipse.org/Menus_Extension_Mapping

Tom

Am 15.08.12 14:56, schrieb Jeff Doth:
> Hey JD,
>
> thanks for your reply. Basically I have the following in my plugin.xml:
>
> <extension point="org.eclipse.ui.editorActions">
> <editorContribution
> targetID="example.editor"
> id="example.rulerActions">
> <action
> label="Not Used"
>
> class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
> style="push"
> actionID="RulerDoubleClick"
> id="example.doubleClickBreakpointAction"/>
> </editorContribution>
> </extension>
>
> <extension point="org.eclipse.ui.popupMenus">
> <viewerContribution
> targetID="example.rulerContextMenuId"
> id="example.RulerPopupActions">
> <action
> label="Toggle Breakpoint"
>
> class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
> menubarPath="additions"
> id="example.rulerContextMenu.toggleBreakpointAction">
> </action>
> </viewerContribution>
>
> My question is how do I port the actions to commands? Do you have a page
> with port examples?
Previous Topic:Autosave
Next Topic:How to change tab color?
Goto Forum:
  


Current Time: Thu Dec 18 13:37:45 GMT 2014

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

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