Bug 77809 [format] Line wrapping for enum constants
20041104 I think it might make sense to be able to set the allignment of enum constants as you might define them all on a line enum MyColors { BLUE, RED, GREEN, YELLOW, BLACK }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/LineWrappingTabPage.java
if (fSelection.size() == 0) {
		        disableAll();
		        return;
		    }
		    
		    if (!fOptionsGroup.isEnabled())
		        enableDefaultComponents(true);
		    
		    fSelectionState.refreshState(fSelection);
		    
			final Category category= (Category)fSelection.getFirstElement();
			fDialogSettings.put(PREF_CATEGORY_INDEX, category.index);
			
			fOptionsGroup.setText(getGroupLabel(category));
		}
		
		private String getGroupLabel(Category category) {
		    if (fSelection.size() == 1) {
			    if (fSelectionState.getElements().size() == 1)
			        return FormatterMessages.getFormattedString("LineWrappingTabPage.group", category.name.toLowerCase()); 
			    return FormatterMessages.getFormattedString("LineWrappingTabPage.multi_group", new String[] {category.name.toLowerCase(), Integer.toString(fSelectionState.getElements().size())}); 
		    }
			return FormatterMessages.getFormattedString("LineWrappingTabPage.multiple_selections", new String[] {Integer.toString(fSelectionState.getElements().size())}); 
		}
        
        private void disableAll() {
            enableDefaultComponents(false);
            fIndentStyleCombo.setEnabled(false);       
            fForceSplit.setEnabled(false);