Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-text-dev] formatter deprecations



Hi John-Mason,

that's right. Acctually MultiPassContentFormatter already sets the document
on the formatting context. The CommentFormattingStrategy and the
JavaFormattingStrategy both make use of this and the partitions passed with
the formatting context to
IFormattingStrategyExtension#formatterStarts(IFormattingContext). I think
we should move this up into the ContextBasedFormattingStrategy.

Christof


Monday, March 22, 2004 6:15 AM
To: "'platform-text-dev@xxxxxxxxxxx '" <platform-text-dev@xxxxxxxxxxx>
cc:
From: "Shackelford, John-Mason" <john-mason.shackelford@xxxxxxxxxxx>
Subject: [platform-text-dev] formatter deprecations



Kai,

I am attempting to rework the ant editor formatter to use the
MultiPassContentFormatter and remove references to recently deprecated
methods. I am not clear about what is meant by a comment in the
ContextBasedFormattingStrategy:

> Also set and use the property value of
> {@link FormattingContextProperties#CONTEXT_MEDIUM})
> in order to access the document.

The ContextBasedFormattingStrategy does not keep a reference to the
IFormattingContext so I am not clear on where I would set this. Shouldn't
this be the responsibility of the MultiPassContentFormatter since it both
has a reference to the IDocument and passes the context to the strategy in
IFormattingStrategyExtension.formatterStarts(IFormattingContext)? The
ContextBasedFormattingStrategy could then make this available to subclasses
just as it does the preferences (c.f.
ContextBasedFormattingStrategy.formatterStarts(IFormattingContext) ).

Thanks for your help,

John-Mason Shackelford

Software Developer
Pearson Educational Measurement - eMeasurement Group

2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
john-mason.shackelford@xxxxxxxxxxx
http://etest.ncspearson.com



****************************************************************************
This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
****************************************************************************
_______________________________________________
platform-text-dev mailing list
platform-text-dev@xxxxxxxxxxx
 http://dev.eclipse.org/mailman/listinfo/platform-text-dev



Back to the top