import net.sourceforge.phpdt.internal.ui.text.HTMLTextPresenter;
import net.sourceforge.phpdt.internal.ui.text.IPHPPartitions;
import net.sourceforge.phpdt.internal.ui.text.JavaAnnotationHover;
+import net.sourceforge.phpdt.internal.ui.text.JavaCompositeReconcilingStrategy;
import net.sourceforge.phpdt.internal.ui.text.JavaElementProvider;
import net.sourceforge.phpdt.internal.ui.text.JavaOutlineInformationControl;
import net.sourceforge.phpdt.internal.ui.text.JavaPresentationReconciler;
/*
* @see SourceViewerConfiguration#getReconciler(ISourceViewer)
*/
+ /*
+ * @see SourceViewerConfiguration#getReconciler(ISourceViewer)
+ */
public IReconciler getReconciler(ISourceViewer sourceViewer) {
- if (getEditor() != null && getEditor().isEditable()) {
- JavaReconciler reconciler = new JavaReconciler(getEditor(),
- new JavaReconcilingStrategy(getEditor()), false);
+
+ final ITextEditor editor= getEditor();
+ if (editor != null && editor.isEditable()) {
+
+ JavaCompositeReconcilingStrategy strategy= new JavaCompositeReconcilingStrategy(editor, getConfiguredDocumentPartitioning(sourceViewer));
+ JavaReconciler reconciler= new JavaReconciler(editor, strategy, false);
+ reconciler.setIsIncrementalReconciler(false);
reconciler.setProgressMonitor(new NullProgressMonitor());
reconciler.setDelay(500);
+
return reconciler;
}
return null;
}
+// public IReconciler getReconciler(ISourceViewer sourceViewer) {
+// if (getEditor() != null && getEditor().isEditable()) {
+// JavaReconciler reconciler = new JavaReconciler(getEditor(),
+// new JavaReconcilingStrategy(getEditor()), false);
+// reconciler.setProgressMonitor(new NullProgressMonitor());
+// reconciler.setDelay(500);
+// return reconciler;
+// }
+// return null;
+// }
/*
* @see SourceViewerConfiguration#getConfiguredTextHoverStateMasks(ISourceViewer,
* String)