Package org.eclipse.jface.text.rules

Examples of org.eclipse.jface.text.rules.DefaultDamagerRepairer


  }
 
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new PresentationReconciler();
   
    DefaultDamagerRepairer dr = null;
   
    dr = new DefaultDamagerRepairer(getDefaultScanner());
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
   
    dr = new DefaultDamagerRepairer(getCommentScanner());
    reconciler.setDamager(dr, JavaScriptPartitionScanner.JS_COMMENT);
    reconciler.setRepairer(dr, JavaScriptPartitionScanner.JS_COMMENT);
   
    return reconciler;
  }
View Full Code Here


  }

  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new PresentationReconciler();

    DefaultDamagerRepairer dr = new DefaultDamagerRepairer(getXMLTagScanner());
    reconciler.setDamager(dr, XMLPartitionScanner.XML_TAG);
    reconciler.setRepairer(dr, XMLPartitionScanner.XML_TAG);

    dr = new DefaultDamagerRepairer(getXMLScanner());
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);

    NonRuleBasedDamagerRepairer ndr = new NonRuleBasedDamagerRepairer(new TextAttribute(
            colorManager.getColor(IXMLColorConstants.XML_COMMENT)));
View Full Code Here

            ISourceViewer sourceViewer) {
        PresentationReconciler reconciler = new PresentationReconciler();
        /*
         * Reconciler configuration
         */
        DefaultDamagerRepairer dr = new DefaultDamagerRepairer(new CSVTokenScanner(m_delimiter));
        reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
        reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
        return reconciler;
    }
View Full Code Here

  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new PresentationReconciler();

    //TOOL
    DefaultDamagerRepairer dr = new DefaultDamagerRepairer(getToolScanner());
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);

    //SQL
    DefaultDamagerRepairer sqldr =
      new DefaultDamagerRepairer(new SQLScanner());
    reconciler.setDamager(sqldr, ToolPartitionScanner.TOOL_SQL);
    reconciler.setRepairer(sqldr, ToolPartitionScanner.TOOL_SQL);
   
    //Comments
    NonRuleBasedDamagerRepairer ndr =
View Full Code Here

  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new PresentationReconciler();
    reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
   
    DefaultDamagerRepairer dr = new DefaultDamagerRepairer(new PowershellCodeScanner(new PowershellColors())); // TODO: make only one copy
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
   
    return reconciler;
  }
View Full Code Here

   
    NonRuleBasedDamagerRepairer pp = new NonRuleBasedDamagerRepairer(new TextAttribute(colorManager.getColor(IXVRColorConstants.PREPROCESSOR)));
    reconciler.setDamager(pp, XVRPartitionScanner.PREPROCESSOR);
    reconciler.setRepairer(pp, XVRPartitionScanner.PREPROCESSOR);
   
    DefaultDamagerRepairer dr = new DefaultDamagerRepairer(getXVRScanner());
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);

    return reconciler;
  }
View Full Code Here

      if (vdmCodeScanner == null)
      {
        vdmCodeScanner = getCodeScanner();
      }

      DefaultDamagerRepairer dr = new DefaultDamagerRepairer(vdmCodeScanner);
      reconciler.setDamager(dr, SINGLELINE_COMMENT);
      reconciler.setRepairer(dr, SINGLELINE_COMMENT);

      dr = new DefaultDamagerRepairer(getCodeScanner());
      reconciler.setDamager(dr, MULTILINE_COMMENT);
      reconciler.setRepairer(dr, MULTILINE_COMMENT);

      dr = new DefaultDamagerRepairer(getCodeScanner());
      reconciler.setDamager(dr, STRING);
      reconciler.setRepairer(dr, STRING);

      dr = new DefaultDamagerRepairer(getCodeScanner());
      reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
      reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
    }
    return reconciler;
  }
View Full Code Here

    {
        PresentationReconciler reconciler = new PresentationReconciler();
        reconciler.setDocumentPartitioning( getConfiguredDocumentPartitioning( sourceViewer ) );

        // Creating the damager/repairer for code
        DefaultDamagerRepairer dr = new DefaultDamagerRepairer( Activator.getDefault().getAciCodeScanner() );
        reconciler.setDamager( dr, IDocument.DEFAULT_CONTENT_TYPE );
        reconciler.setRepairer( dr, IDocument.DEFAULT_CONTENT_TYPE );

        return reconciler;
    }
View Full Code Here

    {
        PresentationReconciler reconciler = new PresentationReconciler();
        reconciler.setDocumentPartitioning( getConfiguredDocumentPartitioning( sourceViewer ) );

        // Creating the damager/repairer for code
        DefaultDamagerRepairer dr = new DefaultDamagerRepairer( Activator.getSchemaCodeScanner() );
        reconciler.setDamager( dr, IDocument.DEFAULT_CONTENT_TYPE );
        reconciler.setRepairer( dr, IDocument.DEFAULT_CONTENT_TYPE );

        return reconciler;
    }
View Full Code Here

  @Override
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new PresentationReconciler();

    DefaultDamagerRepairer dr =
      new DefaultDamagerRepairer(getFitScanner());
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);

    NonRuleBasedDamagerRepairer ndr =
      new NonRuleBasedDamagerRepairer(
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.rules.DefaultDamagerRepairer

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.