prefs.flush();
IEditorPart part = WorkbenchUtils.openEditor(TEST_EDITOR_PROJECT + IPath.SEPARATOR + MACRO_TXT_FTL);
assertEquals(FreemarkerMultiPageEditor.class, part.getClass());
FreemarkerMultiPageEditor multiEditor = (FreemarkerMultiPageEditor) part;
Editor editor = multiEditor.getEditor();
editor.reconcileInstantly();
OutlinePage outline = editor.getOutlinePage();
TreeItem[] items = outline.getTreeViewer().getTree().getItems();
assertEquals(4, items.length);
int i = 0;
assertEquals(MacroDirective.class, items[i++].getData().getClass());
assertEquals(FunctionDirective.class, items[i++].getData().getClass());