Initial check-in of Bulk Editor code.
[taxeditor.git] / taxeditor-bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / BulkEditorSourceViewerConfiguration.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.taxeditor.bulkeditor;
11
12 import org.eclipse.jface.text.reconciler.IReconciler;
13 import org.eclipse.jface.text.reconciler.IReconcilingStrategy;
14 import org.eclipse.jface.text.reconciler.MonoReconciler;
15 import org.eclipse.jface.text.source.ISourceViewer;
16 import org.eclipse.jface.text.source.SourceViewerConfiguration;
17
18 /**
19 * @author p.ciardelli
20 * @created 25.06.2009
21 * @version 1.0
22 */
23 public class BulkEditorSourceViewerConfiguration extends
24 SourceViewerConfiguration {
25
26 /* (non-Javadoc)
27 * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getReconciler(org.eclipse.jface.text.source.ISourceViewer)
28 */
29 public IReconciler getReconciler(ISourceViewer sourceViewer) {
30
31 IReconcilingStrategy strategy = new BulkEditorReconcilingStrategy(sourceViewer);
32 IReconciler reconciler = new MonoReconciler(strategy, true);
33
34 return reconciler;
35 }
36 }