1) Moved net.sourceforge.phpeclipse.ui\src\net\sourceforge\phpdt back to net.sourcefo...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ui / text / JavaTextTools.java
index 10c34c1..3616ccc 100644 (file)
@@ -24,8 +24,9 @@ import org.eclipse.jface.preference.IPreferenceStore;
 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;
 
@@ -296,9 +297,9 @@ public class JavaTextTools implements IPHPPartitions {
         * 
         * @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.
@@ -307,9 +308,9 @@ public class JavaTextTools implements IPHPPartitions {
         * 
         * @since 2.0
         */
-       public RuleBasedScanner getMultilineCommentScanner() {
-               return fMultilineCommentScanner;
-       }
+//     public RuleBasedScanner getMultilineCommentScanner() {
+//             return fMultilineCommentScanner;
+//     }
 
        /**
         * Returns a scanner which is configured to scan HTML code.
@@ -328,9 +329,9 @@ public class JavaTextTools implements IPHPPartitions {
         * 
         * @since 2.0
         */
-       public RuleBasedScanner getSmartyScanner() {
-               return fSmartyScanner;
-       }
+//     public RuleBasedScanner getSmartyScanner() {
+//             return fSmartyScanner;
+//     }
 
        /**
         * Returns a scanner which is configured to scan Smarty code.
@@ -339,9 +340,9 @@ public class JavaTextTools implements IPHPPartitions {
         * 
         * @since 2.0
         */
-       public RuleBasedScanner getSmartyDocScanner() {
-               return fSmartyDocScanner;
-       }
+//     public RuleBasedScanner getSmartyDocScanner() {
+//             return fSmartyDocScanner;
+//     }
 
        /**
         * Returns a scanner which is configured to scan Java singleline comments.
@@ -350,9 +351,9 @@ public class JavaTextTools implements IPHPPartitions {
         * 
         * @since 2.0
         */
-       public RuleBasedScanner getSinglelineCommentScanner() {
-               return fSinglelineCommentScanner;
-       }
+//     public RuleBasedScanner getSinglelineCommentScanner() {
+//             return fSinglelineCommentScanner;
+//     }
 
        /**
         * Returns a scanner which is configured to scan Java strings.
@@ -371,9 +372,9 @@ public class JavaTextTools implements IPHPPartitions {
         * 
         * @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,
@@ -502,9 +503,9 @@ public class JavaTextTools implements IPHPPartitions {
         * @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
@@ -579,7 +580,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);
        }
 
@@ -596,7 +597,7 @@ public class JavaTextTools implements IPHPPartitions {
        // return jspScriptScanner;
        // }
        private IDocumentPartitioner createSmartyPartitioner() {
-               return new DefaultPartitioner(getSmartyPartitionScanner(),
+               return new /*DefaultPartitioner*/FastPartitioner(getSmartyPartitionScanner(),
                                XMLTextTools.TYPES);
        }
 
@@ -729,7 +730,7 @@ public class JavaTextTools implements IPHPPartitions {
         * @return the core preference store
         * @since 3.0
         */
-       protected Preferences getCorePreferenceStore() {
-               return fCorePreferenceStore;
-       }
+//     protected Preferences getCorePreferenceStore() {
+//             return fCorePreferenceStore;
+//     }
 }
\ No newline at end of file