Bug 123852 - Move refactor via quickfix shows a "file not accessible" dialog
Summary: Move refactor via quickfix shows a "file not accessible" dialog
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-01-13 20:19 EST by Missing name CLA
Modified: 2009-08-30 02:09 EDT (History)
0 users

See Also:


Attachments
Image of the dialog (6.44 KB, image/png)
2006-01-13 20:20 EST, Missing name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2006-01-13 20:19:37 EST
If you use "Quick Fix" to do a "Move Refactor" you are displayed a "file not accessible" dialog to delete/discard the java file being edited --- (1). This dialog is very confusing please find png attached.

On the other hand same refactoring done via Context Menu in package explorer with the file open in the editor content area (with unsaved changes) does not show you this dialog and does the refactoring quietly (file is saved, refactoring done, file is closed or left open in the content area) ---- (2)

About the file being closed/left open in (2) - I have noticed that if you refactor to a   outer pkg i.e a.b.c from a.b.c.d  the file is closed but if it is other way around it is left open - this would be a different bug I suppose.

-------------------------------------------------------
Cheers and goodwill
-----------------------------------------------------------------------
Software configuration
----------------------------------------------------------------------
Windows XP Version 5.1 (Build 2600.xpsp_sp2_gdr.050301-1519: Service Pack 2)
-----------------------------------------------------------------------
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
---------------------------------------------------------------------
eclipse-platform-3.2M4-win32
eclipse-PDE-3.2M4
eclipse-JDT-3.2M4
xsd-runtime-2.2.0M3
emf-sdo-runtime-2.2.0M3
GEF-runtime-3.2M3
JEM-runtime-I20051130
wtp-1.0RC5
subclipse-0.9.37
------------------------------------------------------------
Comment 1 Missing name CLA 2006-01-13 20:20:36 EST
Created attachment 33024 [details]
Image of the  dialog
Comment 2 Martin Aeschlimann CLA 2006-01-24 04:49:04 EST
I can't reproduce that with I20060119.

1. create class
package a.b.c.d.e;
public class E1 {
}
2. change package to a.b.c.d, do not save
3. quick fix: Move...
4. editor stays open, no dialog

Same behaviour when saving, and renaming a.b.c.d to a.b.c.d.e

Can you please add more details?
Comment 3 Missing name CLA 2006-02-19 05:51:10 EST
It is interesting that I could not reproduce this on the following configuration:

eclipse-platform-3.2M5-win32
eclipse-PDE-3.2M5
eclipse-JDT-3.2M5
xsd-runtime-2.2.0M4
emf-sdo-runtime-2.2.0M4
GEF-runtime-3.2M4
JEM-runtime-1.2M1
wtp-1.5M4
subclipse-0.9.106

May be some other fix has also fixed this problem. In the mean time this may be closed. I will reopen this bug if it comes up again.

Thank you for your valuable time.
Cheers and good will

Comment 4 Denis Roy CLA 2009-08-30 02:09:19 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.