Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Command alternative for editorActions, RulerToggleBreakpointActionDelegate
Command alternative for editorActions, RulerToggleBreakpointActionDelegate [message #1007350] Tue, 05 February 2013 15:34 Go to next message
Lars Schütze is currently offline Lars SchützeFriend
Messages: 43
Registered: March 2012
Location: Germany
Member

Hello,

I am writing a debugger and currently using the extension points org.eclipse.ui.popupMenus where I can easy add a viewerContribution referring to the class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate. Same with the extension point org.eclipse.ui.editorActions for toggling the breakpoint at the ruler.
But those extension points are deprecated with Juno. Now I am looking to replace them with commands, but I can just get the "Toggle Breakpoint" to appear in the popup menu. But I do not know, how I can link to an adequate command implementation for org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.

Any suggestions?

Below is the code I currently use
 <extension point="org.eclipse.ui.popupMenus">
 	<viewerContribution
 		id="org.dresdenocl.language.ocl.resource.ocl.ui.RulerPopupActions"
 		targetID="org.dresdenocl.language.ocl.resource.ocl.EditorRuler">
 			<action
 				id="org.dresdenocl.language.ocl.resource.ocl.ui.toggleBreakpointAction"
 				icon="icons/breakpoint_icon.gif"
 				label="Toggle Breakpoint"
 				class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
 				menubarPath="debug">
			</action>
	</viewerContribution>
</extension>
<extension point="org.eclipse.ui.editorActions">
	<editorContribution
		targetID="org.dresdenocl.language.ocl.resource.ocl.ui.OclEditor"
		id="org.dresdenocl.language.ocl.resource.ocl.ui.BreakpointRulerActions">
			<action
         actionID="RulerDoubleClick"
         class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
         icon="icons/breakpoint_icon.gif"
         id="org.dresdenocl.language.ocl.resource.ocl.ui.debug.RulerToggleBreakpointAction"
         label="Add breakpoint">
			</action>
	</editorContribution>
</extension>

Thanks in advance.

[Updated on: Tue, 05 February 2013 15:35]

Report message to a moderator

Re: Command alternative for editorActions, RulerToggleBreakpointActionDelegate [message #1007362 is a reply to message #1007350] Tue, 05 February 2013 15:54 Go to previous messageGo to next message
Eclipse UserFriend
The RCP or Plugin forum is probably a better choice. This one is for e4 specific questions.
Re: Command alternative for editorActions, RulerToggleBreakpointActionDelegate [message #1007364 is a reply to message #1007362] Tue, 05 February 2013 16:01 Go to previous message
Lars Schütze is currently offline Lars SchützeFriend
Messages: 43
Registered: March 2012
Location: Germany
Member

Thank you. I posted there http://www.eclipse.org/forums/index.php/m/1007363/#msg_1007363
Previous Topic:CSS property 'unselected-tabs-color' has been deprecated
Next Topic:XWT: custom LabelProvider for dynamic row coloring
Goto Forum:
  


Current Time: Thu Apr 25 10:48:55 GMT 2024

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

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

Back to the top