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 89276 Details for
Bug 218266
[patch] Wrong path returned for ExternalTranslationUnit working copies
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
new proposed patch
b218266_patch2.txt (text/plain), 1.56 KB, created by
Warren Paul
on 2008-02-08 12:15:26 EST
(
hide
)
Description:
new proposed patch
Filename:
MIME Type:
Creator:
Warren Paul
Created:
2008-02-08 12:15:26 EST
Size:
1.56 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.core >Index: model/org/eclipse/cdt/internal/core/model/ExternalTranslationUnit.java >=================================================================== >RCS file: /n/cdt/deedee_40/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ExternalTranslationUnit.java,v >retrieving revision 1.1 >diff -u -r1.1 ExternalTranslationUnit.java >--- model/org/eclipse/cdt/internal/core/model/ExternalTranslationUnit.java 14 May 2007 15:08:59 -0000 1.1 >+++ model/org/eclipse/cdt/internal/core/model/ExternalTranslationUnit.java 8 Feb 2008 17:12:02 -0000 >@@ -27,9 +27,5 @@ > public ExternalTranslationUnit(ICElement parent, IPath path, String contentTypeID) { > super(parent, path, contentTypeID); > } >- >- public IPath getPath() { >- return getLocation(); >- } > > } >Index: model/org/eclipse/cdt/internal/core/model/TranslationUnit.java >=================================================================== >RCS file: /n/cdt/deedee_40/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java,v >retrieving revision 1.4 >diff -u -r1.4 TranslationUnit.java >--- model/org/eclipse/cdt/internal/core/model/TranslationUnit.java 27 Aug 2007 04:34:31 -0000 1.4 >+++ model/org/eclipse/cdt/internal/core/model/TranslationUnit.java 8 Feb 2008 17:12:02 -0000 >@@ -902,4 +902,11 @@ > final ILanguage result= fLanguageOfContext; > return result != null ? result : getLanguage(); > } >+ >+ public IPath getPath() { >+ if (getFile() != null) { >+ return super.getPath(); >+ } >+ return getLocation(); >+ } > }
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 218266
:
89214
|
89231
| 89276