1
0
Fork 0
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:
Markus Schorn 2007-07-20 11:24:13 +00:00
parent f6b7c739ba
commit d94962d1e8

View file

@ -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 {