Package org.eclipse.jdt.internal.ui.text

Examples of org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy


   */
  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);
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.