Talk:FAQ How do I create an Outline view for my own language editor?

From Eclipsepedia

Revision as of 03:38, 21 June 2012 by Willem.duminy.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I think there is no need to keep the page reference ... the framework calls this method only once:
  
public Object getAdapter(Class required) {
      if (IContentOutlinePage.class.equals(required))
            return new CoolLanguageContentOutlinePage(getEditorInput());
      return super.getAdapter(required);
}