Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Contributing RulerDoubleClick action to nested text editor
Contributing RulerDoubleClick action to nested text editor [message #335863] Wed, 06 May 2009 10:03 Go to next message
Eclipse UserFriend
I have a code editor nested in a FormEditor. I want to enable
double-click -> toggle breakpoint.

In a non-multipage editor, it seems that I could do this using
o.e.ui.editorActions, specifying the targetID to match the editor ID.
Then my action would declare its action ID as RulerDoubleClick. But in
the nested case, I can't really specify the nested editor ID.

I'm able to register the ToggleBreakpointAction programmatically, but
I'd prefer not to have to touch the nested editor, or put a debug.ui
dependency on it.

Any suggestions on how to contribute this action from my debug plugin,
declaratively or otherwise?

Cheers
Ben
Re: Contributing RulerDoubleClick action to nested text editor [message #335903 is a reply to message #335863] Fri, 08 May 2009 08:48 Go to previous messageGo to next message
Eclipse UserFriend
Ben Vitale wrote:
> I have a code editor nested in a FormEditor. I want to enable
> double-click -> toggle breakpoint.
>
> In a non-multipage editor, it seems that I could do this using
> o.e.ui.editorActions, specifying the targetID to match the editor ID.
> Then my action would declare its action ID as RulerDoubleClick. But in
> the nested case, I can't really specify the nested editor ID.
Did you try it?

Dani
>
> I'm able to register the ToggleBreakpointAction programmatically, but
> I'd prefer not to have to touch the nested editor, or put a debug.ui
> dependency on it.
>
> Any suggestions on how to contribute this action from my debug plugin,
> declaratively or otherwise?
>
> Cheers
> Ben
Re: Contributing RulerDoubleClick action to nested text editor [message #335908 is a reply to message #335903] Fri, 08 May 2009 10:40 Go to previous messageGo to next message
Eclipse UserFriend
I did. AbstractTextEditor#findContributedAction(..) is checking to make
sure the targetID matches the site ID. MultiPageEditorSite always
answers an empty ID.

Daniel Megert wrote:
> Ben Vitale wrote:
>> I have a code editor nested in a FormEditor. I want to enable
>> double-click -> toggle breakpoint.
>>
>> In a non-multipage editor, it seems that I could do this using
>> o.e.ui.editorActions, specifying the targetID to match the editor ID.
>> Then my action would declare its action ID as RulerDoubleClick. But in
>> the nested case, I can't really specify the nested editor ID.
> Did you try it?
>
> Dani
Re: Contributing RulerDoubleClick action to nested text editor [message #658648 is a reply to message #335908] Wed, 09 March 2011 06:45 Go to previous message
Eclipse UserFriend
I have the same problem, but can you explain how to you have solved programmatically, I can't do it even that.

thanks
Previous Topic:ResourceChangeListener for Database Objects
Next Topic:How to : show 'Review Licenses' window every time?
Goto Forum:
  


Current Time: Wed Apr 30 15:01:04 EDT 2025

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

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

Back to the top