Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Talk:FAQ How do I create an Outline view for my own language editor?
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);
}