Skip to main content


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 messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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?
Re: editorActions and popupMenus replacement [message #1784890 is a reply to message #902004] Thu, 05 April 2018 09:06 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Unfortunately the question is not fully answered by the Wiki. The example uses "actionID="rulerdoubleclick"" and the referenced wiki suggests that for "actionID" "using items and commands, the handler activation will determine which handler gets to run, so I suspect this is not necessary." The new facilities allow a handler to be bound to the ruler menu, but there appears to be no mechanism for specifying that a particular menu contribution is a default to be made available by a double-click.

How is the current double click in the ruler to add/remove a breakpoint to be realized by non-deprecated plugin.xml declarations?

Regards

Ed Willink
Re: editorActions and popupMenus replacement [message #1784896 is a reply to message #1784890] Thu, 05 April 2018 10:41 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Similar questions are raised on https://bugs.eclipse.org/bugs/show_bug.cgi?id=455985
Previous Topic:focus behaviour changed on PartState.ACTIVATE in 4.7
Next Topic:NPE when using Dynamic Menu Contribution
Goto Forum:
  


Current Time: Fri Apr 19 13:40:12 GMT 2024

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

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

Back to the top