mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix CCE in case of includes grouping
This commit is contained in:
parent
2ad1466264
commit
aa114afeef
1 changed files with 11 additions and 8 deletions
|
@ -448,16 +448,19 @@ public abstract class AbstractInformationControl extends PopupDialog implements
|
|||
private ICElement findElement(TreeItem[] items) {
|
||||
ILabelProvider labelProvider= (ILabelProvider)fTreeViewer.getLabelProvider();
|
||||
for (int i= 0; i < items.length; i++) {
|
||||
ICElement element= (ICElement)items[i].getData();
|
||||
if (fStringMatcher == null)
|
||||
return element;
|
||||
|
||||
if (element != null) {
|
||||
String label= labelProvider.getText(element);
|
||||
if (fStringMatcher.match(label))
|
||||
Object item= items[i].getData();
|
||||
ICElement element= null;
|
||||
if (item instanceof ICElement) {
|
||||
element= (ICElement)item;
|
||||
if (fStringMatcher == null)
|
||||
return element;
|
||||
|
||||
if (element != null) {
|
||||
String label= labelProvider.getText(element);
|
||||
if (fStringMatcher.match(label))
|
||||
return element;
|
||||
}
|
||||
}
|
||||
|
||||
element= findElement(items[i].getItems());
|
||||
if (element != null)
|
||||
return element;
|
||||
|
|
Loading…
Add table
Reference in a new issue