Lines 8-13
Link Here
|
8 |
* Contributors: |
8 |
* Contributors: |
9 |
* IBM Corporation - initial API and implementation |
9 |
* IBM Corporation - initial API and implementation |
10 |
* Markus Schorn (Wind River Systems) |
10 |
* Markus Schorn (Wind River Systems) |
|
|
11 |
* Ed Swartz (Nokia) |
11 |
*******************************************************************************/ |
12 |
*******************************************************************************/ |
12 |
|
13 |
|
13 |
package org.eclipse.cdt.internal.ui.search.actions; |
14 |
package org.eclipse.cdt.internal.ui.search.actions; |
Lines 96-104
Link Here
|
96 |
findDefinitions(index, ast, binding) : |
97 |
findDefinitions(index, ast, binding) : |
97 |
findDeclarations(index, ast, binding); |
98 |
findDeclarations(index, ast, binding); |
98 |
} |
99 |
} |
99 |
|
100 |
|
100 |
if (declNames.length > 0) { |
101 |
for (int i = 0; i < declNames.length; i++) { |
101 |
IASTFileLocation fileloc = declNames[0].getFileLocation(); |
102 |
IASTFileLocation fileloc = declNames[i].getFileLocation(); |
102 |
if (fileloc != null) { |
103 |
if (fileloc != null) { |
103 |
final IPath path = new Path(fileloc.getFileName()); |
104 |
final IPath path = new Path(fileloc.getFileName()); |
104 |
final int offset = fileloc.getNodeOffset(); |
105 |
final int offset = fileloc.getNodeOffset(); |
Lines 113-118
Link Here
|
113 |
} |
114 |
} |
114 |
} |
115 |
} |
115 |
}); |
116 |
}); |
|
|
117 |
break; |
116 |
} |
118 |
} |
117 |
} |
119 |
} |
118 |
} |
120 |
} |