Initial check-in of Bulk Editor code.
[taxeditor.git] / taxeditor-bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / BulkEditorSourceViewerConfiguration.java
diff --git a/taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditorSourceViewerConfiguration.java b/taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditorSourceViewerConfiguration.java
new file mode 100644 (file)
index 0000000..236069f
--- /dev/null
@@ -0,0 +1,36 @@
+// $Id$\r
+/**\r
+* Copyright (C) 2007 EDIT\r
+* European Distributed Institute of Taxonomy \r
+* http://www.e-taxonomy.eu\r
+* \r
+* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+* See LICENSE.TXT at the top of this package for the full license terms.\r
+*/\r
+package eu.etaxonomy.taxeditor.bulkeditor;\r
+\r
+import org.eclipse.jface.text.reconciler.IReconciler;\r
+import org.eclipse.jface.text.reconciler.IReconcilingStrategy;\r
+import org.eclipse.jface.text.reconciler.MonoReconciler;\r
+import org.eclipse.jface.text.source.ISourceViewer;\r
+import org.eclipse.jface.text.source.SourceViewerConfiguration;\r
+\r
+/**\r
+ * @author p.ciardelli\r
+ * @created 25.06.2009\r
+ * @version 1.0\r
+ */\r
+public class BulkEditorSourceViewerConfiguration extends\r
+               SourceViewerConfiguration {\r
+\r
+       /* (non-Javadoc)\r
+        * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getReconciler(org.eclipse.jface.text.source.ISourceViewer)\r
+        */\r
+       public IReconciler getReconciler(ISourceViewer sourceViewer) {\r
+               \r
+               IReconcilingStrategy strategy = new BulkEditorReconcilingStrategy(sourceViewer);\r
+               IReconciler reconciler = new MonoReconciler(strategy, true);\r
+\r
+               return reconciler;\r
+       }\r
+}
\ No newline at end of file