Bug 151116 - Project Explorer Does Not Decorate with an Error Icon Until it is Closed and Reopened
Summary: Project Explorer Does Not Decorate with an Error Icon Until it is Closed and ...
Status: RESOLVED DUPLICATE of bug 147467
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-19 14:04 EDT by Michael Barkhouse CLA
Modified: 2006-07-21 16:34 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Barkhouse CLA 2006-07-19 14:04:45 EDT
1) Open the project explorer view.
2) Create a text file in the workspace.
3) Programmatically add a problem marker to the text file. I did so by executing the following code:

IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path("/MyProject/MyFile"));

try {
     IMarker marker = file.createMarker(IMarker.PROBLEM);
     marker.setAttribute(IMarker.SEVERITY, IMarker.SEVERITY_ERROR);
     marker.setAttribute(IMarker.MESSAGE, "test");
}
catch (CoreException e) {}

4) Notice in the project explorer view the project has a red X next to it, but not the file.
5) Close the project explorer view and reopen it. Notice the file now has a red X next to it.

The file should always have the red X too. This might be related to bug 147467. This is a much simplier example tho.
Comment 1 John Arthorne CLA 2006-07-21 16:34:55 EDT

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