// add selection listener to outline page
// so that if outline selects model element, editor selects correct item
if (adapter instanceof ConfigurableContentOutlinePage
&& IContentOutlinePage.class.equals(required)
&& shouldOutlineViewBeLoaded()) {
final ConfigurableContentOutlinePage outlinePage = (ConfigurableContentOutlinePage) adapter;
if (fPHPOutlinePageListener == null) {
fPHPOutlinePageListener = new OutlineSelectionChangedListener(
outlinePage.getConfiguration());
outlinePage.addDoubleClickListener(fPHPOutlinePageListener);
}
fPHPOutlinePageListener.install(outlinePage);
fPHPOutlinePage = outlinePage;
outlinePage.setInput(getModelElement());
}
return adapter;
}