Bug 3912

Summary: no refactoring should be available on .java files from resource folders (1GF5UQM)
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: UIAssignee: Adam Kiezun <akiezun>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P4    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Erich Gamma CLA 2001-10-10 23:02:55 EDT
AK (6/11/01 4:35:16 PM)
	1. add a resource (not source) folder to your project
	2. create a java class in it (or, rather, drag and drop a compilation unit in there)
	3. observe: you cannot rename the compilation unit (i mean, it only renames the file then)
		which is correct - it just happens to ba a .java file but it is just a resource

	4. however, you can invoke all other refactorings - which is wrong

AK (6/11/01 4:39:54 PM)
	why is it a ICompilationUnit then?
	why opening it opens the java editor?
	why is the outliner populated?
	why ...
	it is just a resource file with .java extension
Comment 1 Martin Aeschlimann CLA 2001-10-16 11:13:56 EDT
moved to 'active'
Comment 2 DJ Houghton CLA 2001-10-24 07:24:33 EDT
PRODUCT VERSION:
	122

Comment 3 Erich Gamma CLA 2001-11-10 16:54:56 EST
refactorings should only be enabled for java files on the build path.
otherwise refactorings don't makes sense since we only index Java files on the 
build path.
Comment 4 Adam Kiezun CLA 2001-11-12 05:12:56 EST
not a problem now - i did nothing but .java files are in folders (out of 
classpath) are not reported as cus anymore (only as resources)

closing