Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » problem with MultiPassContentFormatter
problem with MultiPassContentFormatter [message #16623] Thu, 25 June 2009 11:45
Pavel is currently offline PavelFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,
I have problem with implementation of MultiPassContentFormatter. If I use
it, constructor of my formatting strategy is called but no methods are
called for formatting. I don't know why.

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

reconciler.setDocumentPartitioning(getConfiguredDocumentPart itioning(sourceViewer));
DefaultDamagerRepairer dr;
dr= new DefaultDamagerRepairer(this.fCodeScanner);
reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
return reconciler;
}

public IContentFormatter getContentFormatter(ISourceViewer sourceViewer)
{
MultiPassContentFormatter formatter = new
MultiPassContentFormatter(getConfiguredDocumentPartitioning( sourceViewer),IDocument.DEFAULT_CONTENT_TYPE);
formatter.setMasterStrategy(new MasterFormattingStrategy());
return formatter;
}

Is it necessary to define anything else?
Thank you
Previous Topic:problem with MultiPassContentFormatter
Next Topic:How to Use JFace TreeViewer
Goto Forum:
  


Current Time: Sat Apr 27 00:09:18 GMT 2024

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

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

Back to the top