Refactory
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpdt / ui / text / JavaTextTools.java
index 028bc82..7506a59 100644 (file)
@@ -17,7 +17,7 @@ import net.sourceforge.phpeclipse.phpeditor.php.PHPPartitionScanner;
 import net.sourceforge.phpeclipse.phpeditor.php.SmartyCodeScanner;
 import net.sourceforge.phpeclipse.phpeditor.php.SmartyDocCodeScanner;
 import net.sourceforge.phpeclipse.ui.WebUI;
-import net.sourceforge.phpeclipse.xml.ui.XMLPlugin;
+//import net.sourceforge.phpeclipse.xml.ui.XMLPlugin;
 import net.sourceforge.phpeclipse.xml.ui.text.XMLTextTools;
 
 import org.eclipse.core.runtime.Preferences;
@@ -26,6 +26,7 @@ import org.eclipse.jface.text.IDocument;
 import org.eclipse.jface.text.IDocumentExtension3;
 import org.eclipse.jface.text.IDocumentPartitioner;
 import org.eclipse.jface.text.rules.DefaultPartitioner;
+import org.eclipse.jface.text.rules.FastPartitioner;
 import org.eclipse.jface.text.rules.RuleBasedScanner;
 import org.eclipse.jface.util.IPropertyChangeListener;
 import org.eclipse.jface.util.PropertyChangeEvent;
@@ -580,7 +581,7 @@ public class JavaTextTools implements IPHPPartitions {
         */
        public IDocumentPartitioner createPHPPartitioner() {
                // return new DefaultPartitioner(getPHPPartitionScanner(), TYPES);
-               return new DefaultPartitioner(getPHPPartitionScanner(),
+               return new /*DefaultPartitioner*/FastPartitioner(getPHPPartitionScanner(),
                                LEGAL_CONTENT_TYPES);
        }
 
@@ -597,7 +598,7 @@ public class JavaTextTools implements IPHPPartitions {
        // return jspScriptScanner;
        // }
        private IDocumentPartitioner createSmartyPartitioner() {
-               return new DefaultPartitioner(getSmartyPartitionScanner(),
+               return new /*DefaultPartitioner*/FastPartitioner(getSmartyPartitionScanner(),
                                XMLTextTools.TYPES);
        }