1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Bug 297557 getProjectDescription returns null for non-CDT projects; use the shared description for the decorator.

This commit is contained in:
James Blackburn 2010-05-11 11:10:01 +00:00
parent fe3d182f42
commit 91561be4ae

View file

@ -37,7 +37,9 @@ public class ExcludedFileDecorator implements ILightweightLabelDecorator {
if (element instanceof IFile) {
IFile resource = (IFile) element;
ICProjectDescriptionManager mngr = CoreModel.getDefault().getProjectDescriptionManager();
ICProjectDescription desc = mngr.getProjectDescription(resource.getProject());
ICProjectDescription desc = mngr.getProjectDescription(resource.getProject(), false);
if (desc == null)
return;
ICConfigurationDescription conf = desc.getDefaultSettingConfiguration();
ICSourceEntry[] entries = conf.getSourceEntries();
boolean isSource = false;