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 197481 Details for
Bug 348507
[search] Hyperlinks from the Java Stack Trace console should search the workspace in CLASSPATH order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch with fix
stacktraceconsole.patch (text/plain), 2.78 KB, created by
Nikolay Botev
on 2011-06-07 03:46:46 EDT
(
hide
)
Description:
patch with fix
Filename:
MIME Type:
Creator:
Nikolay Botev
Created:
2011-06-07 03:46:46 EDT
Size:
2.78 KB
patch
obsolete
>Index: search/org/eclipse/jdt/internal/core/search/IndexSelector.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/IndexSelector.java,v >retrieving revision 1.49 >diff -u -r1.49 IndexSelector.java >--- search/org/eclipse/jdt/internal/core/search/IndexSelector.java 28 Jun 2010 06:43:29 -0000 1.49 >+++ search/org/eclipse/jdt/internal/core/search/IndexSelector.java 7 Jun 2011 07:31:22 -0000 >@@ -10,6 +10,8 @@ > *******************************************************************************/ > package org.eclipse.jdt.internal.core.search; > >+import java.util.LinkedHashSet; >+ > import org.eclipse.core.resources.IFolder; > import org.eclipse.core.resources.ResourcesPlugin; > import org.eclipse.core.runtime.IPath; >@@ -180,7 +182,7 @@ > private void initializeIndexLocations() { > IPath[] projectsAndJars = this.searchScope.enclosingProjectsAndJars(); > IndexManager manager = JavaModelManager.getIndexManager(); >- SimpleSet locations = new SimpleSet(); >+ LinkedHashSet locations = new LinkedHashSet(); > IJavaElement focus = MatchLocator.projectOrJarFocus(this.pattern); > if (focus == null) { > for (int i = 0; i < projectsAndJars.length; i++) { >@@ -263,10 +265,10 @@ > } > } > >- this.indexLocations = new IPath[locations.elementSize]; >- Object[] values = locations.values; >+ this.indexLocations = new IPath[locations.size()]; >+ Object[] values = locations.toArray(); > int count = 0; >- for (int i = values.length; --i >= 0;) >+ for (int i = 0; i < values.length; ++i) > if (values[i] != null) > this.indexLocations[count++] = (IPath) values[i]; > } >Index: search/org/eclipse/jdt/internal/core/search/JavaWorkspaceScope.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaWorkspaceScope.java,v >retrieving revision 1.36 >diff -u -r1.36 JavaWorkspaceScope.java >--- search/org/eclipse/jdt/internal/core/search/JavaWorkspaceScope.java 27 Jun 2008 16:04:09 -0000 1.36 >+++ search/org/eclipse/jdt/internal/core/search/JavaWorkspaceScope.java 7 Jun 2011 07:31:22 -0000 >@@ -11,7 +11,7 @@ > package org.eclipse.jdt.internal.core.search; > > import java.util.HashMap; >-import java.util.HashSet; >+import java.util.LinkedHashSet; > import java.util.Set; > > import org.eclipse.core.resources.IFolder; >@@ -72,7 +72,7 @@ > long start = BasicSearchEngine.VERBOSE ? System.currentTimeMillis() : -1; > try { > IJavaProject[] projects = JavaModelManager.getJavaModelManager().getJavaModel().getJavaProjects(); >- Set paths = new HashSet(projects.length * 2); >+ Set paths = new LinkedHashSet(projects.length * 2); > for (int i = 0, length = projects.length; i < length; i++) { > JavaProject javaProject = (JavaProject) projects[i]; > >
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 348507
:
197481
|
198304
|
198306
|
201811