formulaDisplayer.setModeSelector(modeSelector);
return formulaDisplayer;
}
private AbstractFormulaDisplayer createPreferredDisplayer(TransformationPage page) {
FormulaBuilderDisplayMode mode = FormulaBuilderDisplayModePreference.get();
switch (mode) {
case DIALOG:
return new FormulaDialogDisplayer();
case OVERLAY:
return new FormulaOverlayDisplayer(page.getOverlayContainer());
default:
throw new RuntimeException("I do not know how to create a formula displayer for the mode " + mode.name());
}
}