Syntax highlighting is changeable.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ui / text / JavaTextTools.java
index 33a5411..810f946 100644 (file)
@@ -476,19 +476,21 @@ public class JavaTextTools implements IPHPPartitions {
   }
 
   /**
-   * Determines whether the preference change encoded by the given event changes the behavior of one its contained components.
-   * 
-   * @param event
-   *          the event to be investigated
-   * @return <code>true</code> if event causes a behavioral change
-   * 
-   * @since 2.0
-   */
-  public boolean affectsBehavior(PropertyChangeEvent event) {
-    return fCodeScanner.affectsBehavior(event) || fMultilineCommentScanner.affectsBehavior(event)
-        || fSinglelineCommentScanner.affectsBehavior(event) || fStringScanner.affectsBehavior(event)
-        || fPHPDocScanner.affectsBehavior(event);
-  }
+        * Determines whether the preference change encoded by the given event
+        * changes the behavior of one its contained components.
+        * 
+        * @param event the event to be investigated
+        * @return <code>true</code> if event causes a behavioral change
+        * @since 2.0
+        * @deprecated As of 3.0, replaced by {@link org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration#affectsTextPresentation(PropertyChangeEvent)}
+        */
+//  public boolean affectsBehavior(PropertyChangeEvent event) {
+//    return fCodeScanner.affectsBehavior(event) 
+//        || fMultilineCommentScanner.affectsBehavior(event)
+//        || fSinglelineCommentScanner.affectsBehavior(event) 
+//        || fStringScanner.affectsBehavior(event)
+//        || fPHPDocScanner.affectsBehavior(event);
+//  }
 
   /**
    * Adapts the behavior of the contained components to the change encoded in the given event.
@@ -504,8 +506,8 @@ public class JavaTextTools implements IPHPPartitions {
       fMultilineCommentScanner.adaptToPreferenceChange(event);
     if (fSinglelineCommentScanner.affectsBehavior(event))
       fSinglelineCommentScanner.adaptToPreferenceChange(event);
-    if (fStringScanner.affectsBehavior(event))
-      fStringScanner.adaptToPreferenceChange(event);
+//    if (fStringScanner.affectsBehavior(event))
+//      fStringScanner.adaptToPreferenceChange(event);
     if (fPHPDocScanner.affectsBehavior(event))
       fPHPDocScanner.adaptToPreferenceChange(event);
     //    if (fHTMLScanner.affectsBehavior(event))