Bug 88309 Reenable sort members on enums
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/SortMembersAction.java
* 
 * @since 2.1
 */
public class SortMembersAction extends SelectionDispatchAction {
	public static final boolean BUG_81329= true;
	private CompilationUnitEditor fEditor;
	private final static String ID= "org.eclipse.jdt.ui.actions.SortMembersAction"; 
	/**
	 * Creates a new <code>SortMembersAction</code>. The action requires
	 * that the selection provided by the site's selection provider is of type <code>
	 * org.eclipse.jface.viewers.IStructuredSelection</code>.
	 * 
	 * @param site the site providing context information for this action
	 */
	public SortMembersAction(IWorkbenchSite site) {
		super(site);
		setText(ActionMessages.getString("SortMembersAction.label")); 
		setDescription(ActionMessages.getString("SortMembersAction.description")); 
		setToolTipText(ActionMessages.getString("SortMembersAction.tooltip")); 		
		
		PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.SORT_MEMBERS_ACTION);
	}
	/**
	 * Note: This constructor is for internal use only. Clients should not call this constructor.
	 */
	public SortMembersAction(CompilationUnitEditor editor) {
		this(editor.getEditorSite());
		fEditor= editor;
		setEnabled(checkEnabledEditor());
	}