Package org.jboss.ide.eclipse.freemarker.outline

Examples of org.jboss.ide.eclipse.freemarker.outline.OutlinePage


    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());
    assertEquals(MacroDirective.class, items[i++].getData().getClass());
View Full Code Here


  @Override
  public Object getAdapter(@SuppressWarnings("rawtypes") Class aClass) {
    Object adapter;
    if (aClass.equals(IContentOutlinePage.class)) {
      if (fOutlinePage == null) {
        fOutlinePage = new OutlinePage(this);
        if (getEditorInput() != null) {
          fOutlinePage.setInput(getEditorInput());
        }
      }
      adapter = fOutlinePage;
View Full Code Here

TOP

Related Classes of org.jboss.ide.eclipse.freemarker.outline.OutlinePage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.