mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-23 08:13:50 +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
|
// compare with node
|
||||||
Object data = parent.getData();
|
Object data = parent.getData();
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
if (data == element) {
|
if (data == element)
|
||||||
|
{
|
||||||
return parent;
|
return parent;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// fix for 174270
|
||||||
|
if (data.equals(element))
|
||||||
|
{
|
||||||
|
return parent;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// recurse over children
|
// recurse over children
|
||||||
Item[] items = getChildren(parent);
|
Item[] items = getChildren(parent);
|
||||||
|
|
|
@ -4935,9 +4935,18 @@ public class SystemView extends SafeTreeViewer implements ISystemTree, ISystemRe
|
||||||
// compare with node
|
// compare with node
|
||||||
Object data = parent.getData();
|
Object data = parent.getData();
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
if (data == element) {
|
if (data == element)
|
||||||
|
{
|
||||||
return parent;
|
return parent;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// fix for 174270
|
||||||
|
if (data.equals(element))
|
||||||
|
{
|
||||||
|
return parent;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// recurse over children
|
// recurse over children
|
||||||
Item[] items = getChildren(parent);
|
Item[] items = getChildren(parent);
|
||||||
|
|
Loading…
Add table
Reference in a new issue