improved syntax highligthing
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / editors / PHPConfiguration.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/editors/PHPConfiguration.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/editors/PHPConfiguration.java
deleted file mode 100644 (file)
index 249318a..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-package net.sourceforge.phpeclipse.editors;
-
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.ITextDoubleClickStrategy;
-import org.eclipse.jface.text.TextAttribute;
-import org.eclipse.jface.text.presentation.IPresentationReconciler;
-import org.eclipse.jface.text.presentation.PresentationReconciler;
-import org.eclipse.jface.text.rules.DefaultDamagerRepairer;
-import org.eclipse.jface.text.rules.Token;
-import org.eclipse.jface.text.source.ISourceViewer;
-import org.eclipse.jface.text.source.SourceViewerConfiguration;
-
-public class PHPConfiguration extends SourceViewerConfiguration
-{
-       private PHPScanner scanner;
-       private ColorManager colorManager;
-
-       public PHPConfiguration(ColorManager colorManager)
-       {
-               this.colorManager = colorManager;
-       }
-       public String[] getConfiguredContentTypes(ISourceViewer sourceViewer)
-       {
-               return new String[] {
-                       IDocument.DEFAULT_CONTENT_TYPE,
-                       PHPPartitionScanner.HTML_COMMENT,
-                       PHPPartitionScanner.HTML_TAG };
-       }
-
-       protected PHPScanner getXMLScanner()
-       {
-               if (scanner == null)
-               {
-                       scanner = new PHPScanner(colorManager);
-                       scanner.setDefaultReturnToken(new Token(new TextAttribute(colorManager.getColor(IPHPColorConstants.DEFAULT))));
-               }
-               return scanner;
-       
-       
-       }
-       
-       
-
-
-       public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)
-       {
-               PresentationReconciler reconciler = new PresentationReconciler();
-
-               DefaultDamagerRepairer dr =
-               new DefaultDamagerRepairer(getXMLScanner());
-               reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
-               reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
-
-               return reconciler;
-       }
-       
-       
-       
-
-}
-