1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00

ClassCastException

This commit is contained in:
Alain Magloire 2004-07-20 22:04:38 +00:00
parent 755accf2b1
commit e39e5fd9c1

View file

@ -177,9 +177,10 @@ public class CContentOutlinePage extends Page implements IContentOutlinePage, IS
Iterator iter= ((IStructuredSelection)sel).iterator();
for (;iter.hasNext();) {
//ICElement elem= fInput.findEqualMember((ICElement)iter.next());
ICElement elem = (ICElement)iter.next();
if (elem != null) {
newSelection.add(elem);
Object o = iter.next();
if (o instanceof ICElement) {
//ICElement elem = (ICElement)iter.next();
newSelection.add(o);
}
}
}