mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +02:00
Follow up for 189811, filter static variables and functions.
This commit is contained in:
parent
f6b7c739ba
commit
d94962d1e8
1 changed files with 6 additions and 3 deletions
|
@ -244,9 +244,12 @@ public class ElementSelectionDialog extends TypeSelectionDialog {
|
|||
return null;
|
||||
}
|
||||
IIndexBinding binding = bindings[i];
|
||||
final int elementType = IndexModelUtil.getElementType(binding);
|
||||
if (isVisibleType(elementType)) {
|
||||
types.add(IndexTypeInfo.create(index, binding));
|
||||
// until we have correctly modeled file-local variables and functions, don't show them.
|
||||
if (!binding.isFileLocal()) {
|
||||
final int elementType = IndexModelUtil.getElementType(binding);
|
||||
if (isVisibleType(elementType)) {
|
||||
types.add(IndexTypeInfo.create(index, binding));
|
||||
}
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
|
Loading…
Add table
Reference in a new issue