IPreferenceStore generalTextStore= EditorsUI.getPreferenceStore(); IPreferenceStore store= new ChainedPreferenceStore(new IPreferenceStore[] { fOverlayStore, generalTextStore }); fPreviewViewer= new SourceViewer(parent, null, null, false, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER);
IPreferenceStore store= new ChainedPreferenceStore(new IPreferenceStore[] { fOverlayStore, JavaPlugin.getDefault().getCombinedPreferenceStore()}); fPreviewViewer= new JavaSourceViewer(parent, null, null, false, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER, store);
	private Control createPreviewer(Composite parent) {				IPreferenceStore generalTextStore= EditorsUI.getPreferenceStore();		IPreferenceStore store= new ChainedPreferenceStore(new IPreferenceStore[] { fOverlayStore, generalTextStore });		fPreviewViewer= new SourceViewer(parent, null, null, false, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER);		fColorManager= new JavaColorManager(false);		PropertiesFileSourceViewerConfiguration configuration= new PropertiesFileSourceViewerConfiguration(fColorManager, store, null, IPropertiesFilePartitions.PROPERTIES_FILE_PARTITIONING);		fPreviewViewer.configure(configuration);		Font font= JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT);		fPreviewViewer.getTextWidget().setFont(font);		new SourcePreviewerUpdater(fPreviewViewer, configuration, store);		fPreviewViewer.setEditable(false);				String content= loadPreviewContentFromFile("PropertiesFileEditorColorSettingPreviewCode.txt"); //$NON-NLS-1$		IDocument document= new Document(content);		PropertiesFileDocumentSetupParticipant.setupDocument(document);		fPreviewViewer.setDocument(document);		return fPreviewViewer.getControl();	}