fPreview.setPreviewText(category.previewText);
setPreviewText(category.previewText);
		public void selectionChanged(SelectionChangedEvent event) {			final IStructuredSelection selection= (IStructuredSelection)event.getSelection();						final Category category= (Category)selection.getFirstElement();			fDialogSettings.put(PREF_CATEGORY_INDEX, category.index);			fCurrentKey= category.key;						if (fCurrentKey != null) {				fOptionsGroup.setText(FormatterMessages.getString("LineWrappingTabPage.group") + category.name.toLowerCase()); //$NON-NLS-1$			} else {				fOptionsGroup.setText(""); //$NON-NLS-1$			}			fPreview.setPreviewText(category.previewText);			final String value= (String)fWorkingValues.get(category.key);			final boolean enabled= value != null;			fOptionsGroup.setVisible(enabled);						if (enabled) {								int wrappingStyle;				int indentStyle;				boolean forceWrapping;				try {					forceWrapping= DefaultCodeFormatterConstants.getForceWrapping(value);					indentStyle= DefaultCodeFormatterConstants.getIndentStyle(value);					wrappingStyle= DefaultCodeFormatterConstants.getWrappingStyle(value);				} catch (IllegalArgumentException e) {					forceWrapping= false;					indentStyle= DefaultCodeFormatterConstants.INDENT_DEFAULT;					wrappingStyle= DefaultCodeFormatterConstants.WRAP_NO_SPLIT;				}				fForceSplit.setSelection(forceWrapping);				fIndentStyleCombo.setText(INDENT_NAMES[indentStyle]);				fWrappingStyleCombo.setText(WRAPPING_NAMES[wrappingStyle]);				updateControls(wrappingStyle);			}		}