mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Part of the precedent log bug fix, but forgotten this file
This commit is contained in:
parent
34db07a830
commit
44446f5bc9
1 changed files with 11 additions and 1 deletions
|
@ -456,7 +456,17 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
|
|||
}
|
||||
|
||||
protected IArchive[] getArchives(IArchiveContainer container) {
|
||||
return container.getArchives();
|
||||
ICElement[] celements = container.getChildren();
|
||||
ArrayList list = new ArrayList(celements.length);
|
||||
for (int i = 0; i < celements.length; i++) {
|
||||
if (celements[i] instanceof IArchive) {
|
||||
IArchive ar = (IArchive)celements[i];
|
||||
list.add(ar);
|
||||
}
|
||||
}
|
||||
IArchive[] ars = new IArchive[list.size()];
|
||||
list.toArray(ars);
|
||||
return ars;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue