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:
parent
fe3d182f42
commit
91561be4ae
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue