Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2005-07-10 21:16:41 -0400
committerAlain Magloire2005-07-10 21:16:41 -0400
commit71be8a0dede58ee6db5a147f74e5102f0645f686 (patch)
tree8989d9c70889507665adce68fae4968f87ffb858
parent1a6f8649961bc4c5506afb12408942aea946248a (diff)
downloadorg.eclipse.cdt-71be8a0dede58ee6db5a147f74e5102f0645f686.tar.gz
org.eclipse.cdt-71be8a0dede58ee6db5a147f74e5102f0645f686.tar.xz
org.eclipse.cdt-71be8a0dede58ee6db5a147f74e5102f0645f686.zip
Remove unused local variable
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java
index 6cbb88df56..332eda214c 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java
@@ -24,7 +24,6 @@ import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.text.Document;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IDocumentPartitioner;
-import org.eclipse.jface.text.source.SourceViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
@@ -72,7 +71,7 @@ public class CEditorPreferencePage extends AbstractPreferencePage implements IWo
protected List fList;
protected ColorEditor fForegroundColorEditor;
protected Button fBoldCheckBox;
- protected SourceViewer fPreviewViewer;
+ protected PreviewSourceViewer fPreviewViewer;
private CEditorHoverConfigurationBlock fCEditorHoverConfigurationBlock;
private FoldingConfigurationBlock fFoldingConfigurationBlock;
@@ -276,9 +275,8 @@ public class CEditorPreferencePage extends AbstractPreferencePage implements IWo
fCTextTools = CUIPlugin.getDefault().getTextTools();
CSourceViewerConfiguration configuration = new CSourceViewerConfiguration(fCTextTools, null);
//fPreviewViewer = new SourceViewer(parent, null, SWT.V_SCROLL | SWT.H_SCROLL);
- PreviewSourceViewer asv = new PreviewSourceViewer(parent, SWT.V_SCROLL | SWT.H_SCROLL);
- asv.setPreferenceStore(CUIPlugin.getDefault().getCombinedPreferenceStore());
- fPreviewViewer = asv;
+ fPreviewViewer = new PreviewSourceViewer(parent, SWT.V_SCROLL | SWT.H_SCROLL);
+ fPreviewViewer.setPreferenceStore(CUIPlugin.getDefault().getCombinedPreferenceStore());
fPreviewViewer.configure(configuration);
fPreviewViewer.getTextWidget().setFont(JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT));
fPreviewViewer.setEditable(false);

Back to the top