Bug 81329

Summary: Disable sort member action for enums
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: UIAssignee: Tobias Widmer <tobias_widmer>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 88224    
Bug Blocks:    

Description Dirk Baeumer CLA 2004-12-15 16:39:33 EST
Tobias, can you please disable the sort member action for enums. JDT/Core can't
fix the problem.
Comment 1 Tobias Widmer CLA 2004-12-16 05:47:51 EST
Done
Comment 2 Dirk Baeumer CLA 2004-12-16 05:58:34 EST
See bug 80929 for details of the sorting problem.
Comment 3 Dirk Baeumer CLA 2004-12-16 09:11:37 EST
There is one case we miss (which isn't critical for M4 though) 

public class A {
	void bar() {
	}
	void foo() {
		class Local {
			static enum E {
				B, C;
			}
		}
	}
}

Although this is illegal Java code we still support sorting here.
Comment 4 Tobias Widmer CLA 2004-12-16 09:14:19 EST
ICompilationUnit#getAllTypes() does not return the nested local enum
Comment 5 Dirk Baeumer CLA 2004-12-16 13:03:07 EST
Verified on I200412160800
Comment 6 Olivier Thomann CLA 2005-03-16 13:45:36 EST
You mean sorting inside the illegal enum?
Comment 7 Olivier Thomann CLA 2005-03-16 14:27:35 EST
This needs to be enabled again once bug 88224 is fixed.