Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 570586

Summary: [reorg] moving class to new package doesn't update package in preview
Product: [Eclipse Project] JDT Reporter: Jeff Johnston <jjohnstn>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 4.19   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jeff Johnston CLA 2021-01-22 21:14:50 EST
When moving a class from one package to another (e.g. drag and drop), the preview will show the final class changes except for the package change.

This can be traced to the preview being fed a CompilationUnitChangeNode which does not alter the package.
Comment 1 Jeff Johnston CLA 2021-01-26 13:17:20 EST
The preview does show that there are two sets of changes.  One is for the compilation unit change and the other is for the package move.  Although there is no preview for the package move, it is obvious to the end-user.