Package org.eclipse.jface.text.rules

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


     */
   
    PresentationReconciler reconciler = new ATGPresentationReconciler();

    // Coco code
    DefaultDamagerRepairer dr = new DefaultDamagerRepairer(getATGScanner());
    reconciler.setDamager(dr, ATGPartitions.DEFAULT);
    reconciler.setRepairer(dr, ATGPartitions.DEFAULT);
   
    reconciler.setDamager(dr, ATGPartitions.IGNORECASE_SEGMENT);
    reconciler.setRepairer(dr, ATGPartitions.IGNORECASE_SEGMENT);
   
    reconciler.setDamager(dr, ATGPartitions.CHARACTERS_SEGMENT);
    reconciler.setRepairer(dr, ATGPartitions.CHARACTERS_SEGMENT);

    reconciler.setDamager(dr, ATGPartitions.TOKENS_SEGMENT);
    reconciler.setRepairer(dr, ATGPartitions.TOKENS_SEGMENT);
   
    reconciler.setDamager(dr, ATGPartitions.PRAGMAS_SEGMENT);
    reconciler.setRepairer(dr, ATGPartitions.PRAGMAS_SEGMENT);

    reconciler.setDamager(dr, ATGPartitions.COMMENTS_SEGMENT);
    reconciler.setRepairer(dr, ATGPartitions.COMMENTS_SEGMENT);

    reconciler.setDamager(dr, ATGPartitions.IGNORE_SEGMENT);
    reconciler.setRepairer(dr, ATGPartitions.IGNORE_SEGMENT);
   
    reconciler.setDamager(dr, ATGPartitions.PRODUCTIONS_SEGMENT);
    reconciler.setRepairer(dr, ATGPartitions.PRODUCTIONS_SEGMENT);

    // COMPILER statement
    reconciler.setDamager(dr, ATGPartitions.COMPILER_KEYWORD);
    reconciler.setRepairer(dr, ATGPartitions.COMPILER_KEYWORD);
    reconciler.setDamager(dr, ATGPartitions.COMPILER_IDENT);
    reconciler.setRepairer(dr, ATGPartitions.COMPILER_IDENT);

    // inline code delimiting tags
    NonRuleBasedDamagerRepairer tagDR = new NonRuleBasedDamagerRepairer(
        fSyntaxManager.getTextAttribute(SyntaxManager.ATG.INLINE_CODE_TAG));
    reconciler.setDamager(tagDR, ATGPartitions.INLINE_CODE_START);
    reconciler.setRepairer(tagDR, ATGPartitions.INLINE_CODE_START);
    reconciler.setDamager(tagDR, ATGPartitions.INLINE_CODE_END);
    reconciler.setRepairer(tagDR, ATGPartitions.INLINE_CODE_END);

    // inline code
    ITokenScanner javaCodeScanner = getJavaCodeScanner();
    fEditor.fJavaCodeScanner = (JavaCodeScanner)javaCodeScanner;
    dr = new DefaultDamagerRepairer(javaCodeScanner);
    reconciler.setDamager(dr, ATGPartitions.IMPORTS);
    reconciler.setRepairer(dr, ATGPartitions.IMPORTS);

    dr = new DefaultDamagerRepairer(javaCodeScanner);
    reconciler.setDamager(dr, ATGPartitions.PARSER_CODE);
    reconciler.setRepairer(dr, ATGPartitions.PARSER_CODE);

    dr = new DefaultDamagerRepairer(javaCodeScanner);
    reconciler.setDamager(dr, ATGPartitions.INLINE_CODE);
    reconciler.setRepairer(dr, ATGPartitions.INLINE_CODE);
    reconciler.setDamager(dr, ATGPartitions.PRAGMAS_INLINE_CODE);
    reconciler.setRepairer(dr, ATGPartitions.PRAGMAS_INLINE_CODE);
    reconciler.setDamager(dr, ATGPartitions.PRODUCTIONS_INLINE_CODE);
View Full Code Here


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

    DefaultDamagerRepairer contentDR = new DefaultDamagerRepairer(getCodeScanner());
    reconciler.setDamager(contentDR, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(contentDR, IDocument.DEFAULT_CONTENT_TYPE);

    NonRuleBasedDamagerRepairer frameDR = new NonRuleBasedDamagerRepairer(
        fSyntaxManager.getTextAttribute(SyntaxManager.Frame.KEYWORD));
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.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.getDefault().getSchemaCodeScanner() );
        reconciler.setDamager( dr, IDocument.DEFAULT_CONTENT_TYPE );
        reconciler.setRepairer( dr, IDocument.DEFAULT_CONTENT_TYPE );

        return reconciler;
    }
View Full Code Here

  /**
   * Define reconciler for MyEditor
   */
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new PresentationReconciler();
    DefaultDamagerRepairer dr = new DefaultDamagerRepairer(getTagScanner());
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
    return reconciler;
  }
View Full Code Here

  /**
   * Define reconciler for MyEditor
   */
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new PresentationReconciler();
    DefaultDamagerRepairer dr = new DefaultDamagerRepairer(getTagScanner());
    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();
   
    DefaultDamagerRepairer dr= new DefaultDamagerRepairer(JsonEditorPlugin.getDefault().getJsonScanner());
    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();

        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

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

    DefaultDamagerRepairer dr = new DefaultDamagerRepairer(getQvtScanner());
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
    NonRuleBasedDamagerRepairer ndr = new NonRuleBasedDamagerRepairer(
        new TextAttribute(colorManager
            .getColor(IQVTColorConstants.QVT_COMMENT)));
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.