1
0
Fork 0
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:
Alain Magloire 2004-04-06 18:31:26 +00:00
parent 34db07a830
commit 44446f5bc9

View file

@ -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;
}
/**