mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
Remove unused local variable
This commit is contained in:
parent
1a6f864996
commit
71be8a0ded
1 changed files with 3 additions and 5 deletions
|
@ -24,7 +24,6 @@ import org.eclipse.jface.resource.JFaceResources;
|
||||||
import org.eclipse.jface.text.Document;
|
import org.eclipse.jface.text.Document;
|
||||||
import org.eclipse.jface.text.IDocument;
|
import org.eclipse.jface.text.IDocument;
|
||||||
import org.eclipse.jface.text.IDocumentPartitioner;
|
import org.eclipse.jface.text.IDocumentPartitioner;
|
||||||
import org.eclipse.jface.text.source.SourceViewer;
|
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.events.SelectionEvent;
|
import org.eclipse.swt.events.SelectionEvent;
|
||||||
import org.eclipse.swt.events.SelectionListener;
|
import org.eclipse.swt.events.SelectionListener;
|
||||||
|
@ -72,7 +71,7 @@ public class CEditorPreferencePage extends AbstractPreferencePage implements IWo
|
||||||
protected List fList;
|
protected List fList;
|
||||||
protected ColorEditor fForegroundColorEditor;
|
protected ColorEditor fForegroundColorEditor;
|
||||||
protected Button fBoldCheckBox;
|
protected Button fBoldCheckBox;
|
||||||
protected SourceViewer fPreviewViewer;
|
protected PreviewSourceViewer fPreviewViewer;
|
||||||
|
|
||||||
private CEditorHoverConfigurationBlock fCEditorHoverConfigurationBlock;
|
private CEditorHoverConfigurationBlock fCEditorHoverConfigurationBlock;
|
||||||
private FoldingConfigurationBlock fFoldingConfigurationBlock;
|
private FoldingConfigurationBlock fFoldingConfigurationBlock;
|
||||||
|
@ -276,9 +275,8 @@ public class CEditorPreferencePage extends AbstractPreferencePage implements IWo
|
||||||
fCTextTools = CUIPlugin.getDefault().getTextTools();
|
fCTextTools = CUIPlugin.getDefault().getTextTools();
|
||||||
CSourceViewerConfiguration configuration = new CSourceViewerConfiguration(fCTextTools, null);
|
CSourceViewerConfiguration configuration = new CSourceViewerConfiguration(fCTextTools, null);
|
||||||
//fPreviewViewer = new SourceViewer(parent, null, SWT.V_SCROLL | SWT.H_SCROLL);
|
//fPreviewViewer = new SourceViewer(parent, null, SWT.V_SCROLL | SWT.H_SCROLL);
|
||||||
PreviewSourceViewer asv = new PreviewSourceViewer(parent, SWT.V_SCROLL | SWT.H_SCROLL);
|
fPreviewViewer = new PreviewSourceViewer(parent, SWT.V_SCROLL | SWT.H_SCROLL);
|
||||||
asv.setPreferenceStore(CUIPlugin.getDefault().getCombinedPreferenceStore());
|
fPreviewViewer.setPreferenceStore(CUIPlugin.getDefault().getCombinedPreferenceStore());
|
||||||
fPreviewViewer = asv;
|
|
||||||
fPreviewViewer.configure(configuration);
|
fPreviewViewer.configure(configuration);
|
||||||
fPreviewViewer.getTextWidget().setFont(JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT));
|
fPreviewViewer.getTextWidget().setFont(JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT));
|
||||||
fPreviewViewer.setEditable(false);
|
fPreviewViewer.setEditable(false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue