* Contributors:
* Igor Malinin - initial contribution
*
- * $Id: XMLTextTools.java,v 1.2 2005-05-06 00:55:41 stefanbjarni Exp $
+ * $Id: XMLTextTools.java,v 1.3 2005-05-15 23:23:02 axelcl Exp $
*/
package net.sourceforge.phpeclipse.xml.ui.text;
import net.sourceforge.phpeclipse.ui.text.AbstractTextTools;
import net.sourceforge.phpeclipse.xml.ui.internal.text.DeclScanner;
+import net.sourceforge.phpeclipse.xml.ui.internal.text.PHPXMLPartitionScanner;
import net.sourceforge.phpeclipse.xml.ui.internal.text.SingleTokenScanner;
import net.sourceforge.phpeclipse.xml.ui.internal.text.TextScanner;
import net.sourceforge.phpeclipse.xml.ui.internal.text.XMLCDATAScanner;
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.IPartitionTokenScanner;
import org.eclipse.jface.text.rules.ITokenScanner;
import org.eclipse.jface.text.rules.RuleBasedScanner;
/** The XML partitions scanner */
private XMLPartitionScanner xmlPartitionScanner;
-
+
+ private PHPXMLPartitionScanner phpXMLPartitionScanner;
/** The XML text scanner */
private TextScanner xmlTextScanner;
super( store, strTokens );
xmlPartitionScanner = new XMLPartitionScanner( false );
-
+ phpXMLPartitionScanner = new PHPXMLPartitionScanner( false );
Map tokens = getTokens();
xmlTextScanner = new TextScanner(
return new DefaultPartitioner( xmlPartitionScanner, TYPES );
}
+ public IDocumentPartitioner createPHPXMLPartitioner() {
+ return new DefaultPartitioner( phpXMLPartitionScanner, TYPES );
+ }
+
/**
*
*/
- public IPartitionTokenScanner getXMLPartitionScanner() {
- return xmlPartitionScanner;
- }
+// public IPartitionTokenScanner getXMLPartitionScanner() {
+// return xmlPartitionScanner;
+// }
/**
* Returns a scanner which is configured to scan XML text.