Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Breakpoints not appearing on vertical ruler
Breakpoints not appearing on vertical ruler [message #285209] Wed, 11 May 2005 13:13 Go to next message
Eclipse User
Originally posted by: andrew.softwaretheories.com

Hello to everyone,

I'm having a problem with breakpoints not appearing on the vertical ruler
that I'm hoping someone can help me with.

I'm extending Eclipse for a new programming language. I created a debug
target, et all, pretty much identical to the PDA example in the eclipse
articles (from http://www.eclipse.org/articles/ - How to write an Eclipse
debugger). This problem appears with the source code provide for the PDA
example as well.

The problem is that when a breakpoint is set, it appears in the breakpoint
list, but does not appear in the ruler in the text editor. It does however
appear in the ruler if the source document is closed and reopened. Then if
the breakpoint is deleted, the icon disappears, but does not appear again
when a breakpoint is added again.

I've created my own editor (which extends TextEditor) which basically does
nothing more than TextEditor. I tried adding an IBreakpointsListener to the
breakpoint manager, and calling
getVerticalRuler().update();
getVerticalRuler().getControl().redraw();
each time a breakpoint is changed/added/deleted, but this has no effect
either.

Again, this problem also appears for the PDA example - any ideas on how
to solve it?

Thank you in advance,
Andrew
Re: Breakpoints not appearing on vertical ruler [message #285216 is a reply to message #285209] Wed, 11 May 2005 15:37 Go to previous messageGo to next message
Darin Swanson is currently offline Darin Swanson
Messages: 2386
Registered: July 2009
Senior Member
If I remember correctly this problem is solved by ensuring that you are
creating your breakpoints in an IWorkspaceRunnable.
See the AntLineBreakpoint (or any of the JDT Debug breakpoints) as an
example

HTH
Darins

"Andrew Szczeszynski" <andrew@softwaretheories.com> wrote in message
news:d5teui$rut$1@news.eclipse.org...
> Hello to everyone,
>
> I'm having a problem with breakpoints not appearing on the vertical
ruler
> that I'm hoping someone can help me with.
>
> I'm extending Eclipse for a new programming language. I created a debug
> target, et all, pretty much identical to the PDA example in the eclipse
> articles (from http://www.eclipse.org/articles/ - How to write an Eclipse
> debugger). This problem appears with the source code provide for the PDA
> example as well.
>
> The problem is that when a breakpoint is set, it appears in the
breakpoint
> list, but does not appear in the ruler in the text editor. It does
however
> appear in the ruler if the source document is closed and reopened. Then
if
> the breakpoint is deleted, the icon disappears, but does not appear again
> when a breakpoint is added again.
>
> I've created my own editor (which extends TextEditor) which basically
does
> nothing more than TextEditor. I tried adding an IBreakpointsListener to
the
> breakpoint manager, and calling
> getVerticalRuler().update();
> getVerticalRuler().getControl().redraw();
> each time a breakpoint is changed/added/deleted, but this has no effect
> either.
>
> Again, this problem also appears for the PDA example - any ideas on how
> to solve it?
>
> Thank you in advance,
> Andrew
>
>
Re: Breakpoints not appearing on vertical ruler [message #285252 is a reply to message #285216] Thu, 12 May 2005 12:09 Go to previous messageGo to next message
Eclipse User
Originally posted by: andrew.softwaretheories.com

Thank you Darin - worked liked a charm!

Kudos!
Andrew

"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:d5tnef$73k$1@news.eclipse.org...
> If I remember correctly this problem is solved by ensuring that you are
> creating your breakpoints in an IWorkspaceRunnable.
> See the AntLineBreakpoint (or any of the JDT Debug breakpoints) as an
> example
>
> HTH
> Darins
Re: Breakpoints not appearing on vertical ruler [message #933628 is a reply to message #285252] Fri, 05 October 2012 03:25 Go to previous messageGo to next message
Jeff Doth is currently offline Jeff Doth
Messages: 10
Registered: January 2012
Junior Member
I am working on the same tutorial and I have also the problem that the breakpoint marker is not shown in the vertical ruler.
Even if I close the editor and reopen it the icon is not shown. However the icon appears in the breakpoint view and
if I mouse over on the vertical ruler the text corresponding to the breakpoint marker is shown.
I am creating the breakpoints in an IWorkspaceRunnable:
public PDALineBreakpoint(final IResource resource, final int lineNumber)
			throws CoreException {
		IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
			public void run(IProgressMonitor monitor) throws CoreException {
				IMarker marker = resource
						.createMarker("example.debug.core.pda.markerType.lineBreakpoint");
				setMarker(marker);
				marker.setAttribute(IBreakpoint.ENABLED, Boolean.TRUE);
				marker.setAttribute(IMarker.LINE_NUMBER, lineNumber);
				marker.setAttribute(IBreakpoint.ID, getModelIdentifier());
				marker.setAttribute(IMarker.MESSAGE, "Line Breakpoint: "
						+ resource.getName() + " [line: " + lineNumber + "]");
			}
		};
		run(getMarkerRule(resource), runnable);
	}


Can anybody explain how to show the blue circle?
Re: Breakpoints not appearing on vertical ruler [message #941148 is a reply to message #285209] Fri, 12 October 2012 04:47 Go to previous messageGo to next message
Jeff Doth is currently offline Jeff Doth
Messages: 10
Registered: January 2012
Junior Member
Any help would be great.
Re: Breakpoints not appearing on vertical ruler [message #973746 is a reply to message #941148] Tue, 06 November 2012 10:35 Go to previous message
Jeff Doth is currently offline Jeff Doth
Messages: 10
Registered: January 2012
Junior Member
Anybody?
Previous Topic:Creating an own form based editor
Next Topic:FileStore extension - difference between new file and folder
Goto Forum:
  


Current Time: Thu Aug 21 02:20:02 EDT 2014

Powered by FUDForum. Page generated in 0.06761 seconds