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 22684 Details for
Bug 97487
[call hierarchy] Call Hierarchy Fails in mounted classes with attached src files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Possible fix
patch97487_org.eclipse.jdt.core.txt (text/plain), 1.55 KB, created by
Jerome Lanneluc
on 2005-06-09 09:29:13 EDT
(
hide
)
Description:
Possible fix
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2005-06-09 09:29:13 EDT
Size:
1.55 KB
patch
obsolete
>Index: model/org/eclipse/jdt/internal/core/JavaModelManager.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelManager.java,v >retrieving revision 1.282 >diff -u -r1.282 JavaModelManager.java >--- model/org/eclipse/jdt/internal/core/JavaModelManager.java 8 Jun 2005 14:50:41 -0000 1.282 >+++ model/org/eclipse/jdt/internal/core/JavaModelManager.java 9 Jun 2005 13:29:01 -0000 >@@ -483,10 +483,29 @@ > if (folder == null) { > return null; > } >+ IJavaElement element; > if (project == null) { > project = JavaCore.create(folder.getProject()); >+ element = determineIfOnClasspath(folder, project); >+ if (element == null) { >+ // walk all projects and find one that have the given folder on its classpath >+ IJavaProject[] projects; >+ try { >+ projects = JavaModelManager.getJavaModelManager().getJavaModel().getJavaProjects(); >+ } catch (JavaModelException e) { >+ return null; >+ } >+ for (int i = 0, length = projects.length; i < length; i++) { >+ project = projects[i]; >+ element = determineIfOnClasspath(folder, project); >+ if (element != null) >+ break; >+ } >+ } >+ } else { >+ element = determineIfOnClasspath(folder, project); > } >- IJavaElement element = determineIfOnClasspath(folder, project); >+ > if (conflictsWithOutputLocation(folder.getFullPath(), (JavaProject)project) > || (folder.getName().indexOf('.') >= 0 > && !(element instanceof IPackageFragmentRoot))) {
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 97487
: 22684