From ba4d1d028269fa0ca1c28d60d35bc52f28bf86d2 Mon Sep 17 00:00:00 2001 From: incastrix Date: Mon, 5 Oct 2009 22:09:04 +0000 Subject: [PATCH] Replace deprecated org.eclipse.jface.text.rules.DefaultPartitioner with org.eclipse.jface.text.rules.FastPartitioner --- .../sourceforge/phpdt/ui/text/JavaTextTools.java | 5 +++-- .../phpeclipse/xml/ui/text/DTDTextTools.java | 5 +++-- .../phpeclipse/xml/ui/text/XMLTextTools.java | 7 ++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/ui/text/JavaTextTools.java b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/ui/text/JavaTextTools.java index 134da15..7506a59 100644 --- a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/ui/text/JavaTextTools.java +++ b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/ui/text/JavaTextTools.java @@ -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); } diff --git a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/xml/ui/text/DTDTextTools.java b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/xml/ui/text/DTDTextTools.java index bb2fbbc..ee3f056 100644 --- a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/xml/ui/text/DTDTextTools.java +++ b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/xml/ui/text/DTDTextTools.java @@ -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); } /** diff --git a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/xml/ui/text/XMLTextTools.java b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/xml/ui/text/XMLTextTools.java index 5c6d32b..5ae2620 100644 --- a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/xml/ui/text/XMLTextTools.java +++ b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/xml/ui/text/XMLTextTools.java @@ -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); } /** -- 1.7.1