/**
* Static factory method for obtaining an instance of the Editor.
*/
public static Editor create(AppContext appContext) {
FontDimensionsCalculator fontDimensionsCalculator =
FontDimensionsCalculator.get(appContext.getResources().workspaceEditorCss().editorFont());
RenderTimeExecutor renderTimeExecutor = new RenderTimeExecutor();
LineDimensionsCalculator lineDimensions =
LineDimensionsCalculator.create(fontDimensionsCalculator);
Buffer buffer =
Buffer.create(appContext, fontDimensionsCalculator.getFontDimensions(), lineDimensions,
renderTimeExecutor);
InputController input = new InputController();
View view =
new View(appContext.getResources(), buffer.getView().getElement(), input.getInputElement());
FocusManager focusManager = new FocusManager(buffer, input.getInputElement());