Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365185 - [xtend] refactoring: unneeded "this resource is derived" message dialog
Summary: [xtend] refactoring: unneeded "this resource is derived" message dialog
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Backlog (show other bugs)
Version: 2.2.0   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 08:11 EST by Moritz Eysholdt CLA
Modified: 2012-11-08 04:31 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.