mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 13:55:39 +02:00
ClassCastException
This commit is contained in:
parent
755accf2b1
commit
e39e5fd9c1
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue