}
/**
- * 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.
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))