mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 22:55:26 +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();
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue