*/
public IReconciler getReconciler(ISourceViewer sourceViewer) {
final ITextEditor editor = getEditor();
if (editor != null && editor.isEditable()) {
JavaCompositeReconcilingStrategy strategy = new JavaCompositeReconcilingStrategy(
sourceViewer, editor,
getConfiguredDocumentPartitioning(sourceViewer)) {
public void initialReconcile() {
// TODO Auto-generated method stub
super.initialReconcile();
}
};
IReconcilingStrategy[] reconcilingStrategies = strategy
.getReconcilingStrategies();
ArrayList<IReconcilingStrategy> arrayList = new ArrayList<IReconcilingStrategy>(
Arrays.asList(reconcilingStrategies));
arrayList.add(new ValidationReconcilingStrategy());
strategy.setReconcilingStrategies(arrayList
.toArray(new IReconcilingStrategy[arrayList.size()]));
JavaReconciler reconciler = new JavaReconciler(editor, strategy,
false);
reconciler.setIsAllowedToModifyDocument(false);
reconciler.setDelay(500);