commit | 65a4945d658c442d17568fb38ce0152cf6a1c2c5 | [log] [tgz] |
---|---|---|
author | Michael Rennie <mrennie> | Mon Oct 29 17:11:17 2007 +0000 |
committer | Michael Rennie <mrennie> | Mon Oct 29 17:11:17 2007 +0000 |
tree | c9a44e67a64e3d5ce90b1d4568442749ed05f91c | |
parent | 07b1bcde4ec79627185e677a6c528d84a82d8e9b [diff] |
207740 LaunchConfigurationQueryParticipant should only be active for types
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/search/LaunchConfigurationQueryParticipant.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/search/LaunchConfigurationQueryParticipant.java index 0fb377f..79cc401 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/search/LaunchConfigurationQueryParticipant.java +++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/search/LaunchConfigurationQueryParticipant.java
@@ -182,7 +182,8 @@ } } if (query instanceof ElementQuerySpecification) { - return ((ElementQuerySpecification) query).getElement().getElementType() == IJavaElement.TYPE; + IJavaElement element = ((ElementQuerySpecification) query).getElement(); + return element.getElementType() == IJavaElement.TYPE || element.getElementType() == IJavaElement.METHOD; } if (query instanceof PatternQuerySpecification) { PatternQuerySpecification patternQuery = (PatternQuerySpecification) query;