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:
parent
468c37bc5e
commit
9d983938df
2 changed files with 20 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue