Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 43430 Details for
Bug 145271
"if" check in PDOMSearchRe sult.computeContainedMatches() should be pulled into the outer loop.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
The needful.
computeMatches.patch (text/plain), 1.26 KB, created by
Neeraj Bhope
on 2006-06-05 00:47:49 EDT
(
hide
)
Description:
The needful.
Filename:
MIME Type:
Creator:
Neeraj Bhope
Created:
2006-06-05 00:47:49 EDT
Size:
1.26 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.ui >Index: src/org/eclipse/cdt/internal/ui/search/PDOMSearchResult.java >=================================================================== >RCS file: /home/tools/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchResult.java,v >retrieving revision 1.2 >diff -u -r1.2 PDOMSearchResult.java >--- src/org/eclipse/cdt/internal/ui/search/PDOMSearchResult.java 23 May 2006 19:17:47 -0000 1.2 >+++ src/org/eclipse/cdt/internal/ui/search/PDOMSearchResult.java 2 Jun 2006 09:40:23 -0000 >@@ -82,12 +82,13 @@ > List list = new ArrayList(); > Object[] elements = result.getElements(); > for (int i = 0; i < elements.length; ++i) { >- Match[] matches = result.getMatches(elements[i]); >- for (int j = 0; j < matches.length; ++j) { >- if (matches[j] instanceof PDOMSearchMatch) { >- String mfilename = ((PDOMSearchMatch)matches[j]).getFileName(); >- if (filename.equals(mfilename)) >+ if (((PDOMSearchElement) elements[i]).getFileName() >+ .equals(filename)) { >+ Match[] matches = result.getMatches(elements[i]); >+ for (int j = 0; j < matches.length; ++j) { >+ if (matches[j] instanceof PDOMSearchMatch) { > list.add(matches[j]); >+ } > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
bjorn.freeman-benson
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 145271
: 43430