Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Vertical Ruler won't refresh breakpoints
Vertical Ruler won't refresh breakpoints [message #274908] Sun, 31 October 2004 12:14 Go to next message
Eclipse UserFriend
I'm trying to integrate our debugger into our Eclipse editor and I'm
having some refresh problems. When I set the line breakpoints in the
vertical ruler they don't show straight away but they will show if I close
the editor and reopen it. I must be setting the breakpoints correctly
because they do show eventually, but is there something more I need to to
with the Vertical ruler, annotations or similar?

The breakpoints are set using the BreakpointManager and they are
persistent. I have no special annotations, and the vertical ruler seems to
work fine for anything but this little annoying issue with the
breakpoints.

I'm extending the TextEditor and set the sourceviewer like below..

protected ISourceViewer createSourceViewer(Composite parent,
IVerticalRuler ruler, int styles) {
ISourceViewer viewer = new ProgressSourceViewer(parent, ruler,
fOverviewRuler, isOverviewRulerVisible(), styles);
fSourceViewerDecorationSupport =
getSourceViewerDecorationSupport(viewer);
ruler.getControl().addMouseListener(new MouseListener(){....});
return viewer;
}

Setting the vertical ruler's AnnotationModel to
ResourceMarkerAnnotationModel made no difference, neither did
resource.refreshLocal() or ruler.update(). Am I missing something
essential here?
Re: Vertical Ruler won't refresh breakpoints [message #275276 is a reply to message #274908] Fri, 05 November 2004 13:30 Go to previous message
Eclipse UserFriend
Problem solved...
Setting the Breakpoint marker from within the Workspace-thread fixed that
problem.

resource.getWorkspace().run(new IWorkspaceRunnable() {
public void run(IProgressMonitor monitor) throws CoreException {
IMarker marker = resource.createMarker(BREAKPOINT_MARKER);
setMarker(marker);
setEnabled(true);
ensureMarker().setAttribute(IMarker.LINE_NUMBER, lineNumber);
ensureMarker().setAttribute(IBreakpoint.ID, DEBUG_MODEL);
ensureMarker().setAttribute(IMarker.MESSAGE, resource.getName());
}
},null);


Per Digre wrote:

> I'm trying to integrate our debugger into our Eclipse editor and I'm
> having some refresh problems. When I set the line breakpoints in the
> vertical ruler they don't show straight away but they will show if I close
> the editor and reopen it. I must be setting the breakpoints correctly
> because they do show eventually, but is there something more I need to to
> with the Vertical ruler, annotations or similar?

> The breakpoints are set using the BreakpointManager and they are
> persistent. I have no special annotations, and the vertical ruler seems to
> work fine for anything but this little annoying issue with the
> breakpoints.

> I'm extending the TextEditor and set the sourceviewer like below..

> protected ISourceViewer createSourceViewer(Composite parent,
> IVerticalRuler ruler, int styles) {
> ISourceViewer viewer = new ProgressSourceViewer(parent, ruler,
> fOverviewRuler, isOverviewRulerVisible(), styles);
> fSourceViewerDecorationSupport =
> getSourceViewerDecorationSupport(viewer);
> ruler.getControl().addMouseListener(new MouseListener(){....});
> return viewer;
> }

> Setting the vertical ruler's AnnotationModel to
> ResourceMarkerAnnotationModel made no difference, neither did
> resource.refreshLocal() or ruler.update(). Am I missing something
> essential here?
Previous Topic:[ employment opportunity or outsourcing develpement situation sought ]
Next Topic:Download newsgroup to newsreader
Goto Forum:
  


Current Time: Mon May 05 23:49:28 EDT 2025

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

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

Back to the top