Search in sources :

Example 1 with ADTLabelProvider

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;
}
Also used : ITreeContentProvider(org.eclipse.jface.viewers.ITreeContentProvider) ExtensibleContentOutlinePage(org.eclipse.wst.xsd.ui.internal.adt.outline.ExtensibleContentOutlinePage) ADTLabelProvider(org.eclipse.wst.xsd.ui.internal.adt.outline.ADTLabelProvider) ADTContentOutlinePage(org.eclipse.wst.xsd.ui.internal.adt.outline.ADTContentOutlinePage)

Aggregations

ITreeContentProvider (org.eclipse.jface.viewers.ITreeContentProvider)1 ADTContentOutlinePage (org.eclipse.wst.xsd.ui.internal.adt.outline.ADTContentOutlinePage)1 ADTLabelProvider (org.eclipse.wst.xsd.ui.internal.adt.outline.ADTLabelProvider)1 ExtensibleContentOutlinePage (org.eclipse.wst.xsd.ui.internal.adt.outline.ExtensibleContentOutlinePage)1