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.RuleBasedScanner;
+//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;
// JSPScriptScanner.JSP_DEFAULT,
// JSPScriptScanner.JSP_BRACKET };
private final static String[] LEGAL_CONTENT_TYPES = new String[] {
- PHP_PHPDOC_COMMENT, PHP_MULTILINE_COMMENT, PHP_SINGLELINE_COMMENT,
- PHP_STRING_DQ, PHP_STRING_SQ, PHP_STRING_HEREDOC };
+ PHP_PHPDOC_COMMENT,
+ PHP_MULTILINE_COMMENT,
+ PHP_SINGLELINE_COMMENT,
+ PHP_STRING_DQ,
+ PHP_STRING_SQ,
+ PHP_STRING_HEREDOC };
// private static XMLPartitionScanner HTML_PARTITION_SCANNER = null;
*
* @return a Java source code scanner
*/
- public RuleBasedScanner getCodeScanner() {
- return fCodeScanner;
- }
+// public RuleBasedScanner getCodeScanner() {
+// return fCodeScanner;
+// }
/**
* Returns a scanner which is configured to scan Java multiline comments.
*
* @since 2.0
*/
- public RuleBasedScanner getMultilineCommentScanner() {
- return fMultilineCommentScanner;
- }
+// public RuleBasedScanner getMultilineCommentScanner() {
+// return fMultilineCommentScanner;
+// }
/**
* Returns a scanner which is configured to scan HTML code.
*
* @since 2.0
*/
- public RuleBasedScanner getSmartyScanner() {
- return fSmartyScanner;
- }
+// public RuleBasedScanner getSmartyScanner() {
+// return fSmartyScanner;
+// }
/**
* Returns a scanner which is configured to scan Smarty code.
*
* @since 2.0
*/
- public RuleBasedScanner getSmartyDocScanner() {
- return fSmartyDocScanner;
- }
+// public RuleBasedScanner getSmartyDocScanner() {
+// return fSmartyDocScanner;
+// }
/**
* Returns a scanner which is configured to scan Java singleline comments.
*
* @since 2.0
*/
- public RuleBasedScanner getSinglelineCommentScanner() {
- return fSinglelineCommentScanner;
- }
+// public RuleBasedScanner getSinglelineCommentScanner() {
+// return fSinglelineCommentScanner;
+// }
/**
* Returns a scanner which is configured to scan Java strings.
*
* @return a JavaDoc scanner
*/
- public RuleBasedScanner getJavaDocScanner() {
- return fPHPDocScanner;
- }
+// public RuleBasedScanner getJavaDocScanner() {
+// return fPHPDocScanner;
+// }
/**
* Returns a scanner which is configured to scan Java-specific partitions,
* @return the partition managing position categories or <code>null</code>
* if there is none
*/
- public String[] getPartitionManagingPositionCategories() {
- return new String[] { DefaultPartitioner.CONTENT_TYPES_CATEGORY };
- }
+// public String[] getPartitionManagingPositionCategories() {
+// return new String[] { DefaultPartitioner.CONTENT_TYPES_CATEGORY };
+// }
/**
* Determines whether the preference change encoded by the given event
*/
public IDocumentPartitioner createPHPPartitioner() {
// return new DefaultPartitioner(getPHPPartitionScanner(), TYPES);
- return new DefaultPartitioner(getPHPPartitionScanner(),
+ return new /*DefaultPartitioner*/FastPartitioner(getPHPPartitionScanner(),
LEGAL_CONTENT_TYPES);
}
// return jspScriptScanner;
// }
private IDocumentPartitioner createSmartyPartitioner() {
- return new DefaultPartitioner(getSmartyPartitionScanner(),
+ return new /*DefaultPartitioner*/FastPartitioner(getSmartyPartitionScanner(),
XMLTextTools.TYPES);
}
* @return the core preference store
* @since 3.0
*/
- protected Preferences getCorePreferenceStore() {
- return fCorePreferenceStore;
- }
+// protected Preferences getCorePreferenceStore() {
+// return fCorePreferenceStore;
+// }
}
\ No newline at end of file