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

Bug 365185

Summary: [xtend] refactoring: unneeded "this resource is derived" message dialog
Product: [Tools] Xtend Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: BacklogAssignee: Project Inbox <xtend-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: btickets, jan, sven.efftinge
Version: 2.2.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Moritz Eysholdt CLA 2011-11-30 08:11:16 EST
Steps to reproduce:

1. create these files
----- Xtend ------
package x

class Baz {	
}
-----------------
----- Java --------
package x;

public class Barr extends Baz {
}
-----------------

2. Place your cursor over "Baz" as in "public class Barr extends Baz".
3. Refactor "Baz" to something else.

After pressing the refactoring shortcut an before being able to enter the new name, there is a pop-up dialog that warns 
"The file 'Test/xtend-gen/x/Baz.java' is derived. Do you really want to edit it?".

This dialog should not be necessary, since in the perception of the user the Xtend class is renamend and not the generated Java class.
Comment 1 Jan Koehnlein CLA 2011-11-30 11:36:47 EST
Can't do much against the dialog as it comes from JDT.
Comment 2 Sven Efftinge CLA 2011-12-01 04:01:48 EST
Then we have to consider to not setting the derived flag.