Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326284

Summary: [common navigator] Problem decoration not updated for CU members in Project Explorer if Outline is not open
Product: [Eclipse Project] JDT Reporter: Valentin Yerastov <valentin>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug
Attachments:
Description Flags
1. Initial state of eclipse
none
2. Add error to source
none
3. Quick fix
none
4. Result none

Description Valentin Yerastov CLA 2010-09-27 05:47:23 EDT
Build Identifier: I20100608-0911

Error marker will not disappear after fixing from the field of a class in the Navigator when opened in a perspective other than Java. But if you go to the Java perspective and go back, the navigator will behave correctly.

Reproducible: Always

Steps to Reproduce:
1. Switch to the "Resources" perspective
2. Close the "Outline view" 
3. Create a class and a field in it. 
4. Restart Eclipse(Make sure that the current perspective is not Java).
5. Make a mistake in the field of class (eg write nonexistent type "inta"). 
6. Save editor 
7. Expand Navigator to the created field
8. Fix the error with quick-fix(Ctrl+1) 
9. Save editor
Comment 1 Dani Megert CLA 2010-09-27 06:16:21 EDT
I cannot reproduce this with your steps using 3.6.1 from here:
http://download.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/index.php

>7. Expand Navigator to the created field
>8. Fix the error with quick-fix(Ctrl+1) 
Step 8. is not possible at this point since Quick Fix is not available for the Project Explorer. You either have to do this in the editor or the Problems view, which suggest you  several possible fixes.

If you can still reproduce with 3.6.1 or 3.7 M2 then please provide more detailed steps that start with a new workspace and reopen this bug.
Comment 2 Valentin Yerastov CLA 2010-09-27 13:28:45 EDT
Created attachment 179665 [details]
1. Initial state of eclipse
Comment 3 Valentin Yerastov CLA 2010-09-27 13:29:25 EDT
Created attachment 179666 [details]
2. Add error to source
Comment 4 Valentin Yerastov CLA 2010-09-27 13:30:34 EDT
Created attachment 179667 [details]
3. Quick fix
Comment 5 Valentin Yerastov CLA 2010-09-27 13:31:05 EDT
Created attachment 179668 [details]
4. Result
Comment 6 Valentin Yerastov CLA 2010-09-27 13:44:39 EDT
Sorry for inaccurate instructions. 
Bug reproduced on a build http://download.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/index.php

I added some screenshots and updated steps to reproduce:
1. Switch to the "Resources" perspective
2. Close the "Outline view" 
3. Create a class and a field in it. 
4. Restart Eclipse(Make sure that the current perspective is not Java) (screenshot 1).
5. Make a mistake in the field of class (eg write nonexistent type "inta")(screenshot 2). 
6. Save editor 
7. Expand Navigator to the created field
8. Fix the error in the source editor with quick-fix(Ctrl+1)(screenshot 3) 
9. Save editor(screenshot 4)
Comment 7 Dani Megert CLA 2010-09-28 07:01:02 EDT
I can reproduce now. The problem decoration is not updated for children of CUs but as soon as an Outline becomes available it works.

It doesn't matter which perspective this is.
Comment 8 Eclipse Genie CLA 2020-04-12 19:19:08 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.