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 96631 Details for
Bug 227813
root detection in in external linked source folders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch
root-detect.patch (text/plain), 1.62 KB, created by
Darin Wright
on 2008-04-18 14:05:06 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Darin Wright
Created:
2008-04-18 14:05:06 EDT
Size:
1.62 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/SourceMapper.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMapper.java,v >retrieving revision 1.133 >diff -u -r1.133 SourceMapper.java >--- model/org/eclipse/jdt/internal/core/SourceMapper.java 18 Apr 2008 15:41:46 -0000 1.133 >+++ model/org/eclipse/jdt/internal/core/SourceMapper.java 18 Apr 2008 18:04:35 -0000 >@@ -495,7 +495,7 @@ > hasSubDirectories = true; > if (firstLevelPackageNames.contains(resource.getName())) { > IPath fullPath = container.getFullPath(); >- IPath rootPathEntry = fullPath.removeFirstSegments(this.sourcePath.segmentCount()).setDevice(null); >+ IPath rootPathEntry = fullPath.removeFirstSegments(getPrefixLength(fullPath)).setDevice(null); > set.add(rootPathEntry); > break loop; > } else { >@@ -513,7 +513,7 @@ > } > if (hasJavaSourceFile) { > IPath fullPath = container.getFullPath(); >- IPath rootPathEntry = fullPath.removeFirstSegments(this.sourcePath.segmentCount()).setDevice(null); >+ IPath rootPathEntry = fullPath.removeFirstSegments(getPrefixLength(fullPath)).setDevice(null); > set.add(rootPathEntry); > } > } >@@ -522,6 +522,14 @@ > // ignore > } > } >+ >+ private int getPrefixLength(IPath path) { >+ if (path.segment(0).equals(".org.eclipse.jdt.core.external.folders")) { >+ return 2; >+ } else { >+ return this.sourcePath.segmentCount(); >+ } >+ } > > /** > * @see ISourceElementRequestor
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
Actions:
View
|
Diff
Attachments on
bug 227813
:
96631
|
96801