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 2032 Details for
Bug 3243
SourceAttachment - automatic computation of the package root does not work (1GCMTLP)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Patch to compute the root path automatically
patch.txt (text/plain), 791 bytes, created by
Olivier Thomann
on 2002-09-20 16:53:49 EDT
(
hide
)
Description:
Patch to compute the root path automatically
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2002-09-20 16:53:49 EDT
Size:
791 bytes
patch
obsolete
> if (fRootPath == null) { > int index = Integer.MAX_VALUE; > for (Enumeration entries = zip.entries(); entries.hasMoreElements(); ) { > entry = (ZipEntry) entries.nextElement(); > int newIndex = entry.getName().indexOf(name); > if (newIndex != -1) { > index = Math.min(index, newIndex); > savedEntry = entry; > } > } > if (savedEntry != null) { > if (index == 0) { > fRootPath = IPackageFragmentRoot.DEFAULT_PACKAGEROOT_PATH; > } else { > fRootPath = savedEntry.getName().substring(0, index - 1); > } > } else { > return null; > } > } > if (fRootPath != null && !fRootPath.equals(IPackageFragmentRoot.DEFAULT_PACKAGEROOT_PATH)) { > fullName = fRootPath + '/' + name; > } else { > fullName = name; > } >
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 Raw
Actions:
View
Attachments on
bug 3243
: 2032