Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Color syntax and folding? Reconciler?
Color syntax and folding? Reconciler? [message #497787] Fri, 13 November 2009 12:29 Go to next message
Andreas Winkler is currently offline Andreas WinklerFriend
Messages: 14
Registered: July 2009
Junior Member
Hi

on my way to my own editor I stumbled over a problem.
Following two tutorials I came to two different reconciler, each one seems to solve its own problem:

PresentationReconciler is obviously used for syntax coloring adding Damager and Repairer

MonoReconciler( ReconcilingStrategy ) is used for folding, where I wrote my own strategy( a parser which returns positions for folding )

Both reconciler should be used through SourceViewerConfiguration.getReconiler().
So far I know the MonoReconciler seems to be used as the standard for the ProjectionViewer which supports folding, this Viewer will be created in the overridden createSourceViewer().

How do I achieve both tasks? Could you please point me to the right direction.

Thanks in advance
Andreas
Re: Color syntax and folding? Reconciler? [message #498298 is a reply to message #497787] Mon, 16 November 2009 12:04 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Andreas Winkler wrote:
> Hi
>
> on my way to my own editor I stumbled over a problem.
> Following two tutorials I came to two different reconciler, each one
> seems to solve its own problem:
Correct.
>
> PresentationReconciler is obviously used for syntax coloring adding
> Damager and Repairer
>
> MonoReconciler( ReconcilingStrategy ) is used for folding, where I
> wrote my own strategy( a parser which returns positions for folding )
IReconciler (which MonoReconciler implements) is used to update the
model in a background thread.
>
> Both reconciler should be used through
> SourceViewerConfiguration.getReconiler().
Not true. The presentation reconciler is not an IReconciler and
unrelated to that method.
> So far I know the MonoReconciler seems to be used as the standard for
> the ProjectionViewer which supports folding, this Viewer will be
> created in the overridden createSourceViewer().
>
> How do I achieve both tasks?
Return your presentation reconciler from
SourceViewerConfiguration.getPresentationReconciler(ISourceV iewer).

Dani
> Could you please point me to the right direction.
>
> Thanks in advance
> Andreas
Previous Topic:toggle buttons
Next Topic:JavaSourceViewerConfiguration (Java Syntax Highlighting) without JDT
Goto Forum:
  


Current Time: Thu Apr 18 16:14:17 GMT 2024

Powered by FUDForum. Page generated in 0.04200 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top