| Summary: | [search] provide ability to add breakpoints from a (string) search view | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Ankur Sharma <ankur_sharma> |
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> |
| Status: | ASSIGNED --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | daniel_megert, darin.eclipse, deepakazad, markus.kell.r |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Ankur Sharma
Darin, is there API in Debug Core or UI that would allow us to do this in JDT UI? There a factory methods to create breakpoints in JDIDebugModel, for example: org.eclipse.jdt.debug.core.JDIDebugModel.createLineBreakpoint(IResource, String, int, int, int, int, boolean, Map) OK, so we would have to add a new dependency on JDT Debug Core but that's not an issue since we already indirectly require it via JDT Launching. I think JDT/UI is not the right place for this. o.e.search should make LineElement API (or an interface with enough information). Then, o.e.jdt.debug.ui can add an object contribution for "Toggle Line Breakpoint" (like it already does e.g. for "Toggle Method Breakpoint" on IMethods). A problem is that the file search result page is language-agnostic, so Debug should either add this in a language-agnostic way too, or it should make sure that the action only appears in *.java files. Moving to JDT/Debug. Please file a bug for Platform/Search if you intend to work on this and need the suggested API. |