Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'valgrind/org.eclipse.linuxtools.valgrind.ui.editor/src/org/eclipse/linuxtools/internal/valgrind/ui/editor/SuppressionsConfiguration.java')
-rw-r--r--valgrind/org.eclipse.linuxtools.valgrind.ui.editor/src/org/eclipse/linuxtools/internal/valgrind/ui/editor/SuppressionsConfiguration.java112
1 files changed, 56 insertions, 56 deletions
diff --git a/valgrind/org.eclipse.linuxtools.valgrind.ui.editor/src/org/eclipse/linuxtools/internal/valgrind/ui/editor/SuppressionsConfiguration.java b/valgrind/org.eclipse.linuxtools.valgrind.ui.editor/src/org/eclipse/linuxtools/internal/valgrind/ui/editor/SuppressionsConfiguration.java
index 4bf4e0c095..704456800b 100644
--- a/valgrind/org.eclipse.linuxtools.valgrind.ui.editor/src/org/eclipse/linuxtools/internal/valgrind/ui/editor/SuppressionsConfiguration.java
+++ b/valgrind/org.eclipse.linuxtools.valgrind.ui.editor/src/org/eclipse/linuxtools/internal/valgrind/ui/editor/SuppressionsConfiguration.java
@@ -1,13 +1,13 @@
/*******************************************************************************
* Copyright (c) 2008, 2009 Phil Muldoon <pkmuldoon@picobot.org>.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Phil Muldoon <pkmuldoon@picobot.org> - initial API.
+ * Phil Muldoon <pkmuldoon@picobot.org> - initial API.
* Red Hat - modifications for use with Valgrind plugins.
*******************************************************************************/
package org.eclipse.linuxtools.internal.valgrind.ui.editor;
@@ -24,60 +24,60 @@ import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.text.source.SourceViewerConfiguration;
public class SuppressionsConfiguration extends SourceViewerConfiguration {
-
- private SuppressionsEditor editor;
- private SuppressionsElementScanner elementScanner;
- public SuppressionsConfiguration(ColorManager colorManager, SuppressionsEditor editor) {
- this.editor = editor;
- elementScanner = new SuppressionsElementScanner(colorManager);
- }
-
- @Override
- public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {
- return SuppressionsPartitionScanner.SUPP_CONTENT_TYPES;
- }
-
- @Override
- public IPresentationReconciler getPresentationReconciler(
- ISourceViewer sourceViewer) {
- PresentationReconciler reconciler = new PresentationReconciler();
+ private SuppressionsEditor editor;
+ private SuppressionsElementScanner elementScanner;
+
+ public SuppressionsConfiguration(ColorManager colorManager, SuppressionsEditor editor) {
+ this.editor = editor;
+ elementScanner = new SuppressionsElementScanner(colorManager);
+ }
+
+ @Override
+ public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {
+ return SuppressionsPartitionScanner.SUPP_CONTENT_TYPES;
+ }
+
+ @Override
+ public IPresentationReconciler getPresentationReconciler(
+ ISourceViewer sourceViewer) {
+ PresentationReconciler reconciler = new PresentationReconciler();
+
+ DefaultDamagerRepairer dr = new DefaultDamagerRepairer(elementScanner);
+ reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
+ reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
+
+ dr = new DefaultDamagerRepairer(elementScanner);
+ reconciler.setDamager(dr, SuppressionsPartitionScanner.SUPP_TOOL);
+ reconciler.setRepairer(dr, SuppressionsPartitionScanner.SUPP_TOOL);
+
+ dr = new DefaultDamagerRepairer(elementScanner);
+ reconciler.setDamager(dr, SuppressionsPartitionScanner.SUPP_TYPE);
+ reconciler.setRepairer(dr, SuppressionsPartitionScanner.SUPP_TYPE);
+
+ dr = new DefaultDamagerRepairer(elementScanner);
+ reconciler.setDamager(dr, SuppressionsPartitionScanner.SUPP_CONTEXT);
+ reconciler.setRepairer(dr, SuppressionsPartitionScanner.SUPP_CONTEXT);
+
+ return reconciler;
+ }
+
+ @Override
+ public IReconciler getReconciler(ISourceViewer sourceViewer) {
+ SuppressionsReconcilingStrategy strategy = new SuppressionsReconcilingStrategy(editor);
+ return new MonoReconciler(strategy, false);
+ }
+
+ @Override
+ public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
+ ContentAssistant assistant = new ContentAssistant();
+ assistant.setContentAssistProcessor(new SuppressionsContentAssistProcessor(), IDocument.DEFAULT_CONTENT_TYPE);
+ assistant.setContentAssistProcessor(new SuppressionsContentAssistProcessor(), SuppressionsPartitionScanner.SUPP_TOOL);
+ assistant.setContentAssistProcessor(new SuppressionsContentAssistProcessor(), SuppressionsPartitionScanner.SUPP_TYPE);
+ assistant.setContentAssistProcessor(new SuppressionsContentAssistProcessor(), SuppressionsPartitionScanner.SUPP_CONTEXT);
+ assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
+ assistant.enableAutoInsert(true);
+ return assistant;
+ }
- DefaultDamagerRepairer dr = new DefaultDamagerRepairer(elementScanner);
- reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
- reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
-
- dr = new DefaultDamagerRepairer(elementScanner);
- reconciler.setDamager(dr, SuppressionsPartitionScanner.SUPP_TOOL);
- reconciler.setRepairer(dr, SuppressionsPartitionScanner.SUPP_TOOL);
-
- dr = new DefaultDamagerRepairer(elementScanner);
- reconciler.setDamager(dr, SuppressionsPartitionScanner.SUPP_TYPE);
- reconciler.setRepairer(dr, SuppressionsPartitionScanner.SUPP_TYPE);
-
- dr = new DefaultDamagerRepairer(elementScanner);
- reconciler.setDamager(dr, SuppressionsPartitionScanner.SUPP_CONTEXT);
- reconciler.setRepairer(dr, SuppressionsPartitionScanner.SUPP_CONTEXT);
-
- return reconciler;
- }
-
- @Override
- public IReconciler getReconciler(ISourceViewer sourceViewer) {
- SuppressionsReconcilingStrategy strategy = new SuppressionsReconcilingStrategy(editor);
- return new MonoReconciler(strategy, false);
- }
-
- @Override
- public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
- ContentAssistant assistant = new ContentAssistant();
- assistant.setContentAssistProcessor(new SuppressionsContentAssistProcessor(), IDocument.DEFAULT_CONTENT_TYPE);
- assistant.setContentAssistProcessor(new SuppressionsContentAssistProcessor(), SuppressionsPartitionScanner.SUPP_TOOL);
- assistant.setContentAssistProcessor(new SuppressionsContentAssistProcessor(), SuppressionsPartitionScanner.SUPP_TYPE);
- assistant.setContentAssistProcessor(new SuppressionsContentAssistProcessor(), SuppressionsPartitionScanner.SUPP_CONTEXT);
- assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
- assistant.enableAutoInsert(true);
- return assistant;
- }
-
}

Back to the top