1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-02 13:55:39 +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(); Iterator iter= ((IStructuredSelection)sel).iterator();
for (;iter.hasNext();) { for (;iter.hasNext();) {
//ICElement elem= fInput.findEqualMember((ICElement)iter.next()); //ICElement elem= fInput.findEqualMember((ICElement)iter.next());
ICElement elem = (ICElement)iter.next(); Object o = iter.next();
if (elem != null) { if (o instanceof ICElement) {
newSelection.add(elem); //ICElement elem = (ICElement)iter.next();
newSelection.add(o);
} }
} }
} }