Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT Ceditor toggling breakpoint by doubleclicking
CDT Ceditor toggling breakpoint by doubleclicking [message #202732] Thu, 11 October 2007 00:58 Go to next message
Eclipse UserFriend
Hello All,
I have created a multipage editor (to work with c/c++ files) with page 1
being an object of CEditor.
I have also included an extension org.eclipse.ui.editorAction and action
BreakpointRulerActions.
With this i am able see toggle breakpoints options under Run menu.
I can also see the same options when i right-click on the ruler.
I am able to toggle breakpoints using the above menu items.

But i am not able to toggle breakpoints by double-clicking on the editor
margin.

The same is working when a file is opened in C/C++ editor, but not working
when the same file is opened in my multipage editor.

Please give me a hint to resolve this issue.

Thanks a lot for your time.

Thanks and regards
Raghavendra.
Re: CDT Ceditor toggling breakpoint by doubleclicking [message #202772 is a reply to message #202732] Thu, 11 October 2007 04:41 Go to previous messageGo to next message
Eclipse UserFriend
Raghavendra wrote:
> Hello All,
> I have created a multipage editor (to work with c/c++ files) with page 1
> being an object of CEditor.
> I have also included an extension org.eclipse.ui.editorAction and action
> BreakpointRulerActions.
> With this i am able see toggle breakpoints options under Run menu.
> I can also see the same options when i right-click on the ruler.
> I am able to toggle breakpoints using the above menu items.
>
> But i am not able to toggle breakpoints by double-clicking on the editor
> margin.
>
> The same is working when a file is opened in C/C++ editor, but not
> working when the same file is opened in my multipage editor.
>
> Please give me a hint to resolve this issue.
>
> Thanks a lot for your time.
>
> Thanks and regards
> Raghavendra.
>
>

The ruler double click action must be contributed as an editorAction
with the special attribute

actionID="RulerDoubleClick"

See the org.eclipse.cdt.debug.ui plugin.xml for reference.

--
Anton Leherbauer
Wind River CDT Team, Austria
Re: CDT Ceditor toggling breakpoint by doubleclicking [message #202788 is a reply to message #202772] Thu, 11 October 2007 06:44 Go to previous messageGo to next message
Eclipse UserFriend
Hello Anton,
Thanks for your time.

We have set the actionID="RulerDoubleClick" in our plugin.xml.
Still this does not work.

Correct me if i am wrong. Just got confused when you say "See the
org.eclipse.cdt.debug.ui plugin.xml for reference."
Do we need to look for plugin.xml of org.eclipse.cdt.debug.ui

Thanks and regards
Raghavendra.
Re: CDT Ceditor toggling breakpoint by doubleclicking [message #202852 is a reply to message #202788] Fri, 12 October 2007 04:50 Go to previous message
Eclipse UserFriend
Raghavendra wrote:
> Hello Anton,
> Thanks for your time.
>
> We have set the actionID="RulerDoubleClick" in our plugin.xml.
> Still this does not work.
>
> Correct me if i am wrong. Just got confused when you say "See the
> org.eclipse.cdt.debug.ui plugin.xml for reference."
> Do we need to look for plugin.xml of org.eclipse.cdt.debug.ui

Yes that's what I meant, but I it seems you don't need to look at it.
I have no clue why it does not work. Again, you need to debug it.
AbstractTextEditor.getRulerMouseListener() might be a starting point.

--
Anton Leherbauer
Wind River CDT Team, Austria
Previous Topic:CDT CEditor typing preferences
Next Topic:Line Start editor command behavior
Goto Forum:
  


Current Time: Fri May 09 14:10:50 EDT 2025

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

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

Back to the top