1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00

[174270] in findExactItem() also use equals() in check

This commit is contained in:
David McKnight 2007-02-16 15:20:59 +00:00
parent 468c37bc5e
commit 9d983938df
2 changed files with 20 additions and 2 deletions

View file

@ -4935,9 +4935,18 @@ public class SystemView extends SafeTreeViewer implements ISystemTree, ISystemRe
// compare with node
Object data = parent.getData();
if (data != null) {
if (data == element) {
if (data == element)
{
return parent;
}
else
{
// fix for 174270
if (data.equals(element))
{
return parent;
}
}
}
// recurse over children
Item[] items = getChildren(parent);

View file

@ -4935,9 +4935,18 @@ public class SystemView extends SafeTreeViewer implements ISystemTree, ISystemRe
// compare with node
Object data = parent.getData();
if (data != null) {
if (data == element) {
if (data == element)
{
return parent;
}
else
{
// fix for 174270
if (data.equals(element))
{
return parent;
}
}
}
// recurse over children
Item[] items = getChildren(parent);