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 52404 Details for
Bug 161529
Open Include from the Outline view does not automatically resolve the include file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch.txt (text/plain), 1.10 KB, created by
ashish
on 2006-10-20 11:37:16 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
ashish
Created:
2006-10-20 11:37:16 EDT
Size:
1.10 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.ui >Index: src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt-releng/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java,v >retrieving revision 1.16 >diff -u -r1.16 OpenIncludeAction.java >--- src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java 22 Jul 2005 03:32:01 -0000 1.16 >+++ src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java 20 Oct 2006 15:40:29 -0000 >@@ -207,7 +207,11 @@ > > public boolean visit(IResourceProxy proxy) throws CoreException { > if (proxy.getType() == IResource.FILE && proxy.getName().equalsIgnoreCase(name.lastSegment())) { >- list.add(proxy.requestResource().getLocation()); >+ IPath rPath = proxy.requestResource().getLocation(); >+ int numSegToRemove = rPath.segmentCount() - name.segmentCount(); >+ IPath sPath = rPath.removeFirstSegments(numSegToRemove); >+ if (sPath.equals(name)) >+ list.add(rPath); > return false; > } > return true;
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 161529
: 52404