Bug 568151 - Add support to drag a breakpoint and relocate it into another line
Summary: Add support to drag a breakpoint and relocate it into another line
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.18   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2020-10-23 04:46 EDT by Gayan Perera CLA
Modified: 2020-10-24 09:41 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gayan Perera CLA 2020-10-23 04:46:52 EDT
When working with breakpoints, one could find out that its better to have the breakpoint in a different line that what he/she originally created at. Today if the breaking point has a condition, we need to copy the condition and create a new breakpoint at new location. It would be nice if we can drag and drop the break point to the new location so that we don't need to manually move conditions and other breakpoint properties.

I had this idea when debugging a code and I quickly checked in IJ and they have that support.
Comment 1 Mickael Istria CLA 2020-10-23 04:50:07 EDT
One preliminary work would be that in the "Breakpoint Properties" page, the breakpoint line should be editable.
Comment 2 Sarika Sinha CLA 2020-10-23 07:22:30 EDT
This should not be a difficult task. For user it will be a move but internally it will delete and copying the properties to create a new one with the same properties.
Comment 3 Gayan Perera CLA 2020-10-23 15:10:08 EDT
@Sarika any idea how we can consume drag and drop event from the ruler ? I guess we need a drag start event so we can detect the break point at ruler location and on drop event we can delete the breakpoint and recreate with new location.
Comment 4 Gayan Perera CLA 2020-10-24 09:41:28 EDT
@Lars if i need to make the breakpoint draggable, does this support come from the platform VerticalRuler ? How can i implement to draggable behavior ? when i checked the source code it seems like annotations are painted with the icons they are provide. So there is no control which i can make draggable using the SWT dnd tutorials out there.