Examples of DefaultDamagerRepairer


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, CSSPartitionScanner.CSS_COMMENT);
    reconciler.setRepairer(dr, CSSPartitionScanner.CSS_COMMENT);
   
    return reconciler;
  }
View Full Code Here

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

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

  }

  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

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

            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

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

  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

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

  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

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

   
    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

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

      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

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

    {
        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

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

    {
        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
TOP
Copyright © 2018 www.massapi.com. 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.