Replace deprecated org.eclipse.jface.text.rules.DefaultPartitioner with org.eclipse...
authorincastrix <incastrix>
Mon, 5 Oct 2009 22:09:46 +0000 (22:09 +0000)
committerincastrix <incastrix>
Mon, 5 Oct 2009 22:09:46 +0000 (22:09 +0000)
net.sourceforge.phpeclipse.xml.ui/src/net/sourceforge/phpeclipse/xml/ui/text/DTDTextTools.java
net.sourceforge.phpeclipse.xml.ui/src/net/sourceforge/phpeclipse/xml/ui/text/XMLTextTools.java

index bb2fbbc..ee3f056 100644 (file)
@@ -23,7 +23,8 @@ import net.sourceforge.phpeclipse.xml.ui.internal.text.XMLPartitionScanner;
 
 import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.text.IDocumentPartitioner;
-import org.eclipse.jface.text.rules.DefaultPartitioner;
+//import org.eclipse.jface.text.rules.DefaultPartitioner;
+import org.eclipse.jface.text.rules.FastPartitioner;
 import org.eclipse.jface.text.rules.IPartitionTokenScanner;
 import org.eclipse.jface.text.rules.RuleBasedScanner;
 
@@ -90,7 +91,7 @@ public class DTDTextTools extends AbstractTextTools {
         * 
         */
        public IDocumentPartitioner createDTDPartitioner() {
-               return new DefaultPartitioner(dtdPartitionScanner, TYPES);
+               return new /*DefaultPartitioner*/FastPartitioner(dtdPartitionScanner, TYPES);
        }
 
        /**
index 5c6d32b..5ae2620 100644 (file)
@@ -26,7 +26,8 @@ import net.sourceforge.phpeclipse.xml.ui.internal.text.XMLTagScanner;
 
 import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.text.IDocumentPartitioner;
-import org.eclipse.jface.text.rules.DefaultPartitioner;
+//import org.eclipse.jface.text.rules.DefaultPartitioner;
+import org.eclipse.jface.text.rules.FastPartitioner;
 import org.eclipse.jface.text.rules.ITokenScanner;
 import org.eclipse.jface.text.rules.RuleBasedScanner;
 
@@ -122,11 +123,11 @@ public class XMLTextTools extends AbstractTextTools {
         * 
         */
        public IDocumentPartitioner createXMLPartitioner() {
-               return new DefaultPartitioner(xmlPartitionScanner, TYPES);
+               return new /*DefaultPartitioner*/FastPartitioner(xmlPartitionScanner, TYPES);
        }
 
        public IDocumentPartitioner createPHPXMLPartitioner() {
-               return new DefaultPartitioner(phpXMLPartitionScanner, TYPES);
+               return new /*DefaultPartitioner*/FastPartitioner(phpXMLPartitionScanner, TYPES);
        }
 
        /**