Examples of IReconciler


Examples of org.eclipse.jface.text.reconciler.IReconciler

    if(fPresentationReconciler != null) {
      fPresentationReconciler.uninstall();
      fPresentationReconciler = null;
    }

    IReconciler newReconciler = configuration.getReconciler(this);

    if (newReconciler != fReconciler || newReconciler == null || fReconciler == null) {

      if (fReconciler != null) {
        fReconciler.uninstall();
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconciler

    fPresenter = new SemanticHighlightingPresenter();
    fPresenter.install(fSourceViewer, fPresentationReconciler);
//    if (fEditor != null) {
      fReconciler = new SemanticHighlightingReconciler();
      fReconciler.install(fSourceViewer, fPresenter, fHighlightings, fHighlightingStyles);
      IReconciler reconciler = fConfiguration.getReconciler(fSourceViewer);
      if (reconciler instanceof DocumentRegionProcessor)
        ((DocumentRegionProcessor) reconciler).setSemanticHighlightingStrategy(fReconciler);
//    } else {
//      fPresenter.updatePresentation(null, createHardcodedPositions(), new HighlightedPosition[0]);
//    }
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconciler

    if(fPresentationReconciler != null) {
      fPresentationReconciler.uninstall();
      fPresentationReconciler = null;
    }

    IReconciler newReconciler = configuration.getReconciler(this);

    if (newReconciler != fReconciler || newReconciler == null || fReconciler == null) {

      if (fReconciler != null) {
        fReconciler.uninstall();
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconciler

    fPresenter = new SemanticHighlightingPresenter();
    fPresenter.install(fSourceViewer, fPresentationReconciler);
//    if (fEditor != null) {
      fReconciler = new SemanticHighlightingReconciler();
      fReconciler.install(fSourceViewer, fPresenter, fHighlightings, fHighlightingStyles);
      IReconciler reconciler = fConfiguration.getReconciler(fSourceViewer);
      if (reconciler instanceof DocumentRegionProcessor)
        ((DocumentRegionProcessor) reconciler).setSemanticHighlightingStrategy(fReconciler);
//    } else {
//      fPresenter.updatePresentation(null, createHardcodedPositions(), new HighlightedPosition[0]);
//    }
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconciler

    if (IContentOutlinePage.class.equals(required)) {
      return createOutlinePage();
    }
    if (QVTReconcilingStrategy.class.equals(required)) {
      QVTSourceViewerConfiguration conf = (QVTSourceViewerConfiguration) getSourceViewerConfiguration();
      IReconciler rec = conf.getReconciler(getSourceViewer());
      return (QVTReconcilingStrategy) rec
          .getReconcilingStrategy(IDocument.DEFAULT_CONTENT_TYPE);
    }
    return super.getAdapter(required);
  }
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconciler

    setHelpContextId(IPHPHelpContextIds.EDITOR_PREFERENCES);//$NON-NLS-1$
  }

  private void addEditorReconcilingListener(SourceViewerConfiguration config,
      StructuredTextViewer textViewer) {
    IReconciler reconciler = config.getReconciler(textViewer);
    if (reconciler instanceof DocumentRegionProcessor) {
      ((DocumentRegionProcessor) reconciler)
          .addReconcilingListener(fEditorReconcilingListener);
    }
  }
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconciler

  }

  private void removeEditorReconcilingListener(
      SourceViewerConfiguration config, StructuredTextViewer textViewer) {

    IReconciler reconciler = config.getReconciler(textViewer);
    if (reconciler instanceof DocumentRegionProcessor) {
      ((DocumentRegionProcessor) reconciler)
          .removeReconcilingListener(fEditorReconcilingListener);
    }
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconciler

 
  @Override
  public IReconciler getReconciler(ISourceViewer sourceViewer) {
    // This awful mess adds in update support
    // Get super strategy
    IReconciler rs = super.getReconciler(sourceViewer);
    if (true) return rs;  // Seems to work fine?!
    final IReconcilingStrategy fsuperStrategy = rs==null? null : rs.getReconcilingStrategy("text");
    // Add our own
    IReconcilingStrategy strategy = new IReconcilingStrategy() {
      private IDocument doc;
      public void reconcile(IRegion partition) {
        MarkdownEditor ed = MarkdownEditor.getEditor(doc);
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconciler

          catch (Exception e) {
            // TODO CD add logging here
          }
          if (configuration != null) {
            ISourceViewer textViewer = textEditor.getTextViewer();
            IReconciler reconciler = configuration.getReconciler(textViewer);
            if (reconciler instanceof DirtyRegionProcessor) {
              ((DirtyRegionProcessor) reconciler).setDocument(textViewer.getDocument());
            }
          }
        }
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.