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

Bug 154652

Summary: [reorg] Moving class between packages with a problem refers to in-accessible preview page
Product: [Eclipse Project] JDT Reporter: Kendall Lister <kendall>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jjohnstn
Version: 3.2   
Target Milestone: 4.18   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Kendall Lister CLA 2006-08-22 02:03:14 EDT
When dragging a class from one package to another in the Java perspective, the refactoring causes a dialogue window titled 'Move' that says:

x Found potential matches. Please review changes on the preview page.

However, there is no preview page, or at least I can't see one. It seems that the refactoring sub-system is being called to perform the moving of the class from one package to another, but it expected to be able to present the proposed changes to the user for preview and acceptance - in this case, though, it doesn't happen.
Comment 1 Maxime Daniel CLA 2006-08-22 02:16:41 EDT
Moving to JDT UI.
Comment 2 Martin Aeschlimann CLA 2006-08-22 08:44:46 EDT
Reproduced in 20060816

----- default package
public class Test {
}
---- package foo
package foo;

public class Other {
	Test r;
}

- drag Test to package 'bar'
- no dialog is shown, just the error page.
- If 'Test' is located in a non-default package and moved, you get a move dialog first that contains the 'Preview' button


Comment 3 Eclipse Genie CLA 2020-08-17 12:49:20 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Jeff Johnston CLA 2021-01-22 21:17:24 EST
This bug has been fixed over time.  There is a caveat - the preview for the move does not show the new package.  A new bug has been opened for this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=570586