X-Git-Url: http://secure.phpeclipse.com
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/text/JavaTextTools.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/text/JavaTextTools.java
index 33a5411..7ba9d51 100644
--- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/text/JavaTextTools.java
+++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/text/JavaTextTools.java
@@ -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 true
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 true
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))
@@ -514,7 +516,9 @@ public class JavaTextTools implements IPHPPartitions {
fSmartyScanner.adaptToPreferenceChange(event);
if (fSmartyDocScanner.affectsBehavior(event))
fSmartyDocScanner.adaptToPreferenceChange(event);
- XMLPlugin.getDefault().getXMLTextTools().affectsBehavior(event);
+// if (XMLPlugin.getDefault().getXMLTextTools().affectsBehavior(event)) {
+// XMLPlugin.getDefault().getXMLTextTools().adaptToPreferenceChange(event);
+// }
}
/**