Skip to main content



      Home
Home » Eclipse Projects » JFace » problem with MultiPassContentFormatter
problem with MultiPassContentFormatter [message #16623] Thu, 25 June 2009 07:45
Eclipse UserFriend
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: Mon Jul 14 02:41:27 EDT 2025

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

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

Back to the top