Bug 568119 - Moving text with mouse click leaves wrong result
Summary: Moving text with mouse click leaves wrong result
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-22 12:18 EDT by Maria Benk CLA
Modified: 2020-10-22 12:23 EDT (History)
0 users

See Also:


Attachments
Before renaming method (state used for all cases) (13.34 KB, image/png)
2020-10-22 12:18 EDT, Maria Benk CLA
no flags Details
move "Alpha" in first method name to the left (OK) (13.31 KB, image/png)
2020-10-22 12:19 EDT, Maria Benk CLA
no flags Details
move "Alpha" in second method name to the left (13.71 KB, image/png)
2020-10-22 12:20 EDT, Maria Benk CLA
no flags Details
move "Alpha" in third method name to the left (13.27 KB, image/png)
2020-10-22 12:20 EDT, Maria Benk CLA
no flags Details
move "Numeric" in third method name to the right (14.92 KB, image/png)
2020-10-22 12:21 EDT, Maria Benk CLA
no flags Details
State of two editor panes before moving text up (25.82 KB, image/png)
2020-10-22 12:22 EDT, Maria Benk CLA
no flags Details
State of two editor panes after moving text up (28.83 KB, image/png)
2020-10-22 12:22 EDT, Maria Benk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maria Benk CLA 2020-10-22 12:18:06 EDT
Created attachment 284538 [details]
Before renaming method (state used for all cases)

Using
Eclipse SDK

Version: 2020-09 (4.17)
Build id: I20200902-1800

or

Version: 2020-06 (4.16)
Build id: I20200604-0540

(1) when working with two views on the same text (split pane, or cloned editor)
- select text in one view and move up with the left mouse button clicked where the target is in the other view
- then the text _before_ the source of moving is removed, instead of the source
- whereas moving within one pane, or down, or copying was OK

(2) similarly when renaming in-place (I renamed a method):
- moving the selection with the mouse to the left seems to work if it is the first occurrence and results in different unwanted text for later occurrences
- moving forward also did not result in the desired changed name in all cases

See the attachments for "before" and "after" states of a simple Java class with such text movements:

(1) moving the comment up, from right pane to left pane
(2a) move "Alpha" to before "Numeric" within the method name which is "isNumericAlpha"
(2b) move "Numeric" to after "Alpha" within the method name which is "isNumericAlpha"
Comment 1 Maria Benk CLA 2020-10-22 12:19:29 EDT
Created attachment 284539 [details]
move "Alpha" in first method name to the left (OK)
Comment 2 Maria Benk CLA 2020-10-22 12:20:13 EDT
Created attachment 284540 [details]
move "Alpha" in second method name to the left
Comment 3 Maria Benk CLA 2020-10-22 12:20:46 EDT
Created attachment 284541 [details]
move "Alpha" in third method name to the left
Comment 4 Maria Benk CLA 2020-10-22 12:21:16 EDT
Created attachment 284542 [details]
move "Numeric" in third method name to the right
Comment 5 Maria Benk CLA 2020-10-22 12:22:00 EDT
Created attachment 284543 [details]
State of two editor panes before moving text up
Comment 6 Maria Benk CLA 2020-10-22 12:22:46 EDT
Created attachment 284544 [details]
State of two editor panes after moving text up