Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ui.externaltools/Ant Editor New/org/eclipse/ui/externaltools/internal/ant/editor/PlantySourceViewerConfigurationNew.java')
-rw-r--r--org.eclipse.ui.externaltools/Ant Editor New/org/eclipse/ui/externaltools/internal/ant/editor/PlantySourceViewerConfigurationNew.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/org.eclipse.ui.externaltools/Ant Editor New/org/eclipse/ui/externaltools/internal/ant/editor/PlantySourceViewerConfigurationNew.java b/org.eclipse.ui.externaltools/Ant Editor New/org/eclipse/ui/externaltools/internal/ant/editor/PlantySourceViewerConfigurationNew.java
new file mode 100644
index 000000000..a5a7d3db8
--- /dev/null
+++ b/org.eclipse.ui.externaltools/Ant Editor New/org/eclipse/ui/externaltools/internal/ant/editor/PlantySourceViewerConfigurationNew.java
@@ -0,0 +1,41 @@
+/**********************************************************************
+Copyright (c) 2000, 2002 IBM Corp. and others.
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Common Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/cpl-v10.html
+
+Contributors:
+ IBM Corporation - Initial implementation
+**********************************************************************/
+package org.eclipse.ui.externaltools.internal.ant.editor;
+
+import org.eclipse.jface.text.reconciler.IReconciler;
+import org.eclipse.jface.text.source.ISourceViewer;
+import org.eclipse.ui.externaltools.internal.ant.editor.outline.NotifyingReconciler;
+import org.eclipse.ui.externaltools.internal.ant.editor.outline.XMLReconcilingStrategy;
+
+/**
+ * PlantySourceViewerConfiguration.java
+ */
+public class PlantySourceViewerConfigurationNew extends PlantySourceViewerConfiguration {
+
+ private PlantyEditor fEditor;
+
+ public PlantySourceViewerConfigurationNew(PlantyEditor editor) {
+ super();
+ fEditor= editor;
+ }
+
+ /*
+ * @see SourceViewerConfiguration#getReconciler(ISourceViewer)
+ */
+ public IReconciler getReconciler(ISourceViewer sourceViewer) {
+ NotifyingReconciler reconciler= new NotifyingReconciler(fEditor, new XMLReconcilingStrategy(fEditor), false);
+ reconciler.setDelay(500);
+// TODO: remove or implement?
+// reconciler.addReconcilingParticipant(fEditor);
+ return reconciler;
+ }
+
+}

Back to the top