use of org.eclipse.wb.internal.core.databinding.ui.editor.PageListenerWrapper in project windowbuilder by eclipse.
the class TreeInputElementUiContentProvider method createContent.
@Override
public void createContent(Composite parent, int columns) {
// create folder
m_tabFolder = new TabFolder(parent, SWT.NONE);
GridDataFactory.create(m_tabFolder).fill().grab().spanH(columns);
// create designer page
m_designerPageListener = new PageListenerWrapper(m_pageListener, m_completeListener);
//
m_designerComposite = new UiContentProviderComposite(m_designerPageListener, createDesignerProviders(), m_tabFolder, SWT.NONE);
TabFactory.item(m_tabFolder).text(Messages.TreeInputElementUiContentProvider_designerSupport).image(CHECK_IMAGE).control(m_designerComposite);
// create jface page
m_jfacePageListener = new PageListenerWrapper(m_pageListener, m_completeListener);
//
m_jfaceComposite = new UiContentProviderComposite(m_jfacePageListener, createJFaceProviders(), m_tabFolder, SWT.NONE);
TabFactory.item(m_tabFolder).text(Messages.TreeInputElementUiContentProvider_jfaceSupport).image(UNCHECK_IMAGE).control(m_jfaceComposite);
//
m_tabFolder.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
handleTabSelection();
calculateFinish();
}
});
}
Aggregations