mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 15:45:25 +02:00
[174295] use absolute name rather than name when finding references
This commit is contained in:
parent
f14be143f5
commit
f87607f37c
2 changed files with 8 additions and 8 deletions
|
@ -3180,16 +3180,16 @@ public class SystemView extends SafeTreeViewer implements ISystemTree, ISystemRe
|
|||
} else {
|
||||
ISystemViewElementAdapter adapter = getViewAdapter(element);
|
||||
// DKM - taken out as per defect 174295
|
||||
String elementName = adapter.getName(element);
|
||||
//String elementName = adapter.getName(element);
|
||||
|
||||
//String searchString = adapter.getAbsoluteName(element);
|
||||
String searchString = adapter.getAbsoluteName(element);
|
||||
ISubSystem subSystem = adapter.getSubSystem(element);
|
||||
|
||||
Vector matches = new Vector();
|
||||
//findAllRemoteItemReferences(searchString, element, subSystem, matches);
|
||||
findAllRemoteItemReferences(searchString, element, subSystem, matches);
|
||||
|
||||
// DKM - taken out as per defect 174295
|
||||
findAllRemoteItemReferences(elementName, element, subSystem, matches);
|
||||
//findAllRemoteItemReferences(elementName, element, subSystem, matches);
|
||||
if (matches.size() > 0) {
|
||||
for (int i = 0; i < matches.size(); i++) {
|
||||
Item match = (Item) matches.get(i);
|
||||
|
|
|
@ -3180,16 +3180,16 @@ public class SystemView extends SafeTreeViewer implements ISystemTree, ISystemRe
|
|||
} else {
|
||||
ISystemViewElementAdapter adapter = getViewAdapter(element);
|
||||
// DKM - taken out as per defect 174295
|
||||
String elementName = adapter.getName(element);
|
||||
//String elementName = adapter.getName(element);
|
||||
|
||||
//String searchString = adapter.getAbsoluteName(element);
|
||||
String searchString = adapter.getAbsoluteName(element);
|
||||
ISubSystem subSystem = adapter.getSubSystem(element);
|
||||
|
||||
Vector matches = new Vector();
|
||||
//findAllRemoteItemReferences(searchString, element, subSystem, matches);
|
||||
findAllRemoteItemReferences(searchString, element, subSystem, matches);
|
||||
|
||||
// DKM - taken out as per defect 174295
|
||||
findAllRemoteItemReferences(elementName, element, subSystem, matches);
|
||||
//findAllRemoteItemReferences(elementName, element, subSystem, matches);
|
||||
if (matches.size() > 0) {
|
||||
for (int i = 0; i < matches.size(); i++) {
|
||||
Item match = (Item) matches.get(i);
|
||||
|
|
Loading…
Add table
Reference in a new issue