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

Bug 334017

Summary: After using the Visual Editor, trying to refactor/move a project reports errors.
Product: z_Archived Reporter: Mark Karuzis <karuzis>
Component: VEAssignee: VE Bugzilla inbox <ve-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mark Karuzis CLA 2011-01-11 13:40:05 EST
Build Identifier: M20090211-1700 

After modifying/saving a file using the VE, the VE appears to be holding a handle to the root folder for the project.  At that point, attempting to move the project throws an exception, since it cannot delete the project's root folder.  As a result of the exception, the UI is not refreshed correctly.  (For example, the project files are actually all moved, but the properties page still shows the project as residing in the original location  (until you do a refresh).

Note that I've described the simplest way to reproduce the problem in a trivial environment.  In my case, it's breaking our Team Share wizard, responsible for putting a project under source control.  In this case, the recovery path is extremely non-intuitive for the user.

Reproducible: Always

Steps to Reproduce:
1.Create a java project.
2.Create a java class.
3.The new class is shown in an editor, close it.
4.Open the new class using VE.
5.Make any change to the class, and save it.
6. From the project node's context menu, click Refactor -> Move
7. Choose a new location, and click OK