use of org.eclipse.wst.xsd.ui.internal.adt.outline.ADTLabelProvider in project webtools.sourceediting by eclipse.
the class ADTMultiPageEditor method getContentOutlinePage.
public IContentOutlinePage getContentOutlinePage() {
if (fOutlinePage == null || fOutlinePage.getControl() == null || fOutlinePage.getControl().isDisposed()) {
final ProductCustomizationProvider productCustomizationProvider = (ProductCustomizationProvider) getAdapter(ProductCustomizationProvider.class);
ExtensibleContentOutlinePage outlinePage = null;
if (productCustomizationProvider != null) {
outlinePage = productCustomizationProvider.getProductContentOutlinePage();
}
if (outlinePage == null) {
outlinePage = new ADTContentOutlinePage();
}
outlinePage.setEditor(this);
ITreeContentProvider provider = (ITreeContentProvider) getEditorModeManager().getCurrentMode().getOutlineProvider();
outlinePage.setContentProvider(provider);
ADTLabelProvider adtLabelProvider = new ADTLabelProvider();
outlinePage.setLabelProvider(adtLabelProvider);
outlinePage.setModel(getModel());
fOutlinePage = outlinePage;
}
return fOutlinePage;
}
Aggregations