Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pdt-dev] Old PDT code formatter

Hi,
In need future I want back to my old bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=438240) about code pasting. I was reviewing code and meaningful for this fix code is strongly related to old code formatter. I found some funny code like this:)

final boolean licensed = true;
if (licensed) {
formatter = new PHPCodeFormatter();
} else {
formatter = new MultiPassContentFormatter(
IStructuredPartitioning.DEFAULT_STRUCTURED_PARTITIONING,
IHTMLPartitions.HTML_DEFAULT);
((MultiPassContentFormatter) formatter)
.setMasterStrategy(new StructuredFormattingStrategy(
new PhpFormatProcessorImpl()));
}

Old formatter looks unused and my question is this 100% true? A lot of code can be removed in this case, but maybe someone knows something against this idea:) Thanks for any historical info :)

Michal



Back to the top