Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » How to allow double click breakpoints in XML files 1.0M8 ???
How to allow double click breakpoints in XML files 1.0M8 ??? [message #146557] Tue, 08 November 2005 11:49 Go to next message
Eclipse UserFriend
Im now using 1.0 M8 and extending StructuredTextEdtior, I want to disable
the double click for bookmarks and have double clicks toggle breakpoints. I
had this working in 0.7 by extending StructuredTextEditorXML before it went
away but cannot seem to get this in 1.0M8.

I was doing so by calling setAction(RulerDoubleClick, null); in
createPartControl and had an editorAction with ActionID = RulerDoubleClick.
No longer seems to work.

Any help is appreciated.

Brian Jakubik
Re: How to allow double click breakpoints in XML files 1.0M8 ??? [message #146578 is a reply to message #146557] Tue, 08 November 2005 15:16 Go to previous messageGo to next message
Eclipse UserFriend
Brian Jakubik wrote:
> Im now using 1.0 M8 and extending StructuredTextEdtior, I want to disable
> the double click for bookmarks and have double clicks toggle breakpoints. I
> had this working in 0.7 by extending StructuredTextEditorXML before it went
> away but cannot seem to get this in 1.0M8.
>
> I was doing so by calling setAction(RulerDoubleClick, null); in
> createPartControl and had an editorAction with ActionID = RulerDoubleClick.
> No longer seems to work.
>
> Any help is appreciated.

You could do it by subclassing the editor class and overriding the
createActions() method, but subclassing the editor's not recommended.

The double-click action for the ruler is set within the
StructuredTextEditor.computeAndSetDoubleClickAction() method to one
that uses our breakpoint provider mechanism. When a breakpoint
provider is found, double-click automatically toggles breakpoints.
Otherwise it'll set bookmarks. It's not API since we're not sure if
the platform will provide a way to set breakpoints in all editors,
but you can use the org.eclipse.wst.sse.ui.breakpoints extension
point to contribute an implementor of
org.eclipse.wst.sse.ui.internal.provisional.extensions.break point.IBreakpointProvider.
Check the org.eclipse.jst.jsp.ui plugin for an example
implementation or the org.eclipse.wst.xml.ui.tests plugin for a
simpler (although commented out) example.

--
- Nitin
Re: How to allow double click breakpoints in XML files 1.0M8 ??? [message #147137 is a reply to message #146578] Tue, 15 November 2005 14:44 Go to previous message
Eclipse UserFriend
I have opened bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=116483 on
this issue.

Brian Jakubik


"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:dkr137$ive$1@news.eclipse.org...
> Brian Jakubik wrote:
>> Im now using 1.0 M8 and extending StructuredTextEdtior, I want to disable
>> the double click for bookmarks and have double clicks toggle breakpoints.
>> I had this working in 0.7 by extending StructuredTextEditorXML before it
>> went away but cannot seem to get this in 1.0M8.
>>
>> I was doing so by calling setAction(RulerDoubleClick, null); in
>> createPartControl and had an editorAction with ActionID =
>> RulerDoubleClick. No longer seems to work.
>>
>> Any help is appreciated.
>
> You could do it by subclassing the editor class and overriding the
> createActions() method, but subclassing the editor's not recommended.
>
> The double-click action for the ruler is set within the
> StructuredTextEditor.computeAndSetDoubleClickAction() method to one that
> uses our breakpoint provider mechanism. When a breakpoint provider is
> found, double-click automatically toggles breakpoints. Otherwise it'll set
> bookmarks. It's not API since we're not sure if the platform will provide
> a way to set breakpoints in all editors, but you can use the
> org.eclipse.wst.sse.ui.breakpoints extension point to contribute an
> implementor of
> org.eclipse.wst.sse.ui.internal.provisional.extensions.break point.IBreakpointProvider.
> Check the org.eclipse.jst.jsp.ui plugin for an example implementation or
> the org.eclipse.wst.xml.ui.tests plugin for a simpler (although commented
> out) example.
>
> --
> - Nitin
Previous Topic:Problem: How to synchornize
Next Topic:problems in creating dynamic web project
Goto Forum:
  


Current Time: Mon May 05 09:01:00 EDT 2025

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

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

Back to the top