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
}
	    }
  
        private String getPreviewText(Map wrappingMap, Map indentMap, Map forceMap) {
            Iterator iterator= fElements.iterator();
            String previewText= ""; 
            while (iterator.hasNext()) {
                Category category= (Category)iterator.next();
                previewText= previewText + category.previewText + "\n\n"; 
            }
            return previewText;
        }
        
        private void insertIntoMap(Map wrappingMap, Map indentMap, Map forceMap, Category category) {
            final String value= (String)fWorkingValues.get(category.key);
            Integer wrappingStyle;
            Integer indentStyle;
            Boolean forceWrapping;
            
            try {
                wrappingStyle= new Integer(DefaultCodeFormatterConstants.getWrappingStyle(value));
                indentStyle= new Integer(DefaultCodeFormatterConstants.getIndentStyle(value));
                forceWrapping= new Boolean(DefaultCodeFormatterConstants.getForceWrapping(value));
            } catch (IllegalArgumentException e) {
				forceWrapping= new Boolean(false);
				indentStyle= new Integer(DefaultCodeFormatterConstants.INDENT_DEFAULT);
				wrappingStyle= new Integer(DefaultCodeFormatterConstants.WRAP_NO_SPLIT);
			} 
			
            increaseMapEntry(wrappingMap, wrappingStyle);