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 58481 Details for
Bug 173339
[launching] default main method search scope constraints are too lax
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
173339.patch (text/plain), 2.14 KB, created by
Michael Rennie
on 2007-02-07 15:36:19 EST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Michael Rennie
Created:
2007-02-07 15:36:19 EST
Size:
2.14 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.debug.ui >Index: ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaMainTab.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaMainTab.java,v >retrieving revision 1.50 >diff -u -r1.50 JavaMainTab.java >--- ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaMainTab.java 7 Feb 2007 20:33:38 -0000 1.50 >+++ ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaMainTab.java 7 Feb 2007 20:34:48 -0000 >@@ -154,8 +154,8 @@ > elements = new IJavaElement[]{}; > } > int constraints = IJavaSearchScope.SOURCES; >+ constraints |= IJavaSearchScope.APPLICATION_LIBRARIES; > if (fSearchExternalJarsCheckButton.getSelection()) { >- constraints |= IJavaSearchScope.APPLICATION_LIBRARIES; > constraints |= IJavaSearchScope.SYSTEM_LIBRARIES; > } > IJavaSearchScope searchScope = SearchEngine.createJavaSearchScope(elements, constraints); >Index: ui/org/eclipse/jdt/internal/debug/ui/launcher/JavaApplicationLaunchShortcut.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/JavaApplicationLaunchShortcut.java,v >retrieving revision 1.33 >diff -u -r1.33 JavaApplicationLaunchShortcut.java >--- ui/org/eclipse/jdt/internal/debug/ui/launcher/JavaApplicationLaunchShortcut.java 7 Feb 2007 20:33:37 -0000 1.33 >+++ ui/org/eclipse/jdt/internal/debug/ui/launcher/JavaApplicationLaunchShortcut.java 7 Feb 2007 20:34:48 -0000 >@@ -92,7 +92,9 @@ > try { > IJavaElement[] javaElements = getJavaElements(elements); > MainMethodSearchEngine engine = new MainMethodSearchEngine(); >- IJavaSearchScope scope = SearchEngine.createJavaSearchScope(javaElements, false); >+ int constraints = IJavaSearchScope.SOURCES; >+ constraints |= IJavaSearchScope.APPLICATION_LIBRARIES; >+ IJavaSearchScope scope = SearchEngine.createJavaSearchScope(javaElements, constraints); > return engine.searchMainMethods(context, scope, true); > } catch (InvocationTargetException e) { > throw (CoreException)e.getTargetException();
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 173339
: 58481