Bug 403401 - Highlight of breakpoint stays even after breakpoint is removed
Summary: Highlight of breakpoint stays even after breakpoint is removed
Status: CLOSED DUPLICATE of bug 373201
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.2.1   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-14 17:57 EDT by Gabriel Branchaud CLA
Modified: 2013-04-30 11:14 EDT (History)
3 users (show)

See Also:


Attachments
Snapshot showing the issue (2.76 KB, image/png)
2013-03-14 17:58 EDT, Gabriel Branchaud CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Branchaud CLA 2013-03-14 17:57:42 EDT
Highlight color of breakpoint stays on even once breakpoint is removed.
This happens with both a fresh Eclipse IDE for Java EE Developers and the one I am normally using (same version, but plugins installed and other prefs changed).

*Steps to repro:*
1. Open any java class in Eclipse IDE for Java EE Developers
2. Open Window -> Preferences
3. Go in General > Editors > Text Editors > Annotations
4. Select "Breakpoints" as a type.
5. Check "Text as", pick the "Highlighted" value and select a color (you can leave the default).
6. Press Ok to dismiss dialog
7. Back in your java class, in the main() method, add a line of code (i.e. "System.out.println("hello world");")
8. Add a breakpoint on that line (double-click in the margin).
9. Confirm the entire line is highlighted with your custom color.
10. Remove the breakpoint from the line (double-click in the margin, again).

*Expected results*
11. The highlight on the line immediately disappear.

*Actual results*
11. The highlight on the line stays there (until you close and reopen the document)*.

* Note: it seems that typing in the document (after or before the highlight location) will eventually make the hightlight disappear.

-- Configuration Details --
Product: Eclipse 1.5.2.20130110-1126 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.platform 4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7
Comment 1 Gabriel Branchaud CLA 2013-03-14 17:58:55 EDT
Created attachment 228452 [details]
Snapshot showing the issue

Uploaded an image showing the issue: no breakpoints in the margin, but there is still the highlight of when the breakpoint was there.
Comment 2 Michael Rennie CLA 2013-04-01 09:49:07 EDT
Thanks for the detailed steps Gabriel.

Debug does not do anything special to make the annotation show up other than set the char start / end on the marker. Dani, is there some update callback we should be using to force the editor to update after we delete the breakpoint marker?

Update to step 11: have mark occurrences on and select an identifier - the breakpoint annotation also goes away when the editor refreshes.
Comment 3 Dani Megert CLA 2013-04-02 11:21:32 EDT
(In reply to comment #2)
> Thanks for the detailed steps Gabriel.
> 
> Debug does not do anything special to make the annotation show up other than
> set the char start / end on the marker. Dani, is there some update callback
> we should be using to force the editor to update after we delete the
> breakpoint marker?

No, but it should be done in a workspace runnable.
Comment 4 Missing name CLA 2013-04-27 00:34:09 EDT
I'm experiencing this bug as well.
Comment 5 Dani Megert CLA 2013-04-30 11:14:43 EDT

*** This bug has been marked as a duplicate of bug 373201 ***