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 89214 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]
proposed patch
b218266_patch.txt (text/plain), 1.81 KB, created by
Warren Paul
on 2008-02-07 18:35:24 EST
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Warren Paul
Created:
2008-02-07 18:35:24 EST
Size:
1.81 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 7 Feb 2008 23:30:29 -0000 >@@ -27,9 +27,4 @@ > 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 7 Feb 2008 23:30:29 -0000 >@@ -297,8 +297,10 @@ > if (file != null) { > location = file.getLocation(); > } else { >- return getPath(); >+ // should have already be set when the external >+ // translation unit was constructed > } >+ > } > return location; > } >@@ -901,5 +903,9 @@ > public ILanguage getLanguageOfContext() throws CoreException { > final ILanguage result= fLanguageOfContext; > return result != null ? result : getLanguage(); >+ } >+ >+ public IPath 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
Actions:
View
|
Diff
Attachments on
bug 218266
:
89214
|
89231
|
89276