}
public void expandCollapseFunctionsOrComments(final boolean collapse,
final boolean comments) {
if (fProjectionModelUpdater instanceof IErlangFoldingStructureProviderExtension) {
final IErlangFoldingStructureProviderExtension ext = (IErlangFoldingStructureProviderExtension) fProjectionModelUpdater;
if (collapse) {
if (comments) {
ext.collapseComments();
} else {
ext.collapseFunctions();
}
} else {
ext.expandAll();
}
}
}