Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:03 Go to next message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
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 12:48 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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 14:40 Go to previous messageGo to next message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
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 11:45 Go to previous message
fantarama  is currently offline fantarama Friend
Messages: 1
Registered: March 2011
Junior Member
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: Tue Jul 16 14:33:45 GMT 2024

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

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

Back to the top