Search in sources :

Example 1 with PageSite

use of org.eclipse.ui.part.PageSite in project tdi-studio-se by Talend.

the class AbstractJvmPropertySection method createControls.

/*
     * @see AbstractPropertySection#createControls(Composite, TabbedPropertySheetPage)
     */
@Override
public final void createControls(Composite parent, final TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(parent, tabbedPropertySheetPage);
    parent.setLayoutData(new GridData(GridData.FILL_BOTH));
    pageBook = new PageBook(parent, SWT.NONE);
    messagePage = createMessagePage(pageBook);
    contentPage = new Composite(pageBook, SWT.NONE);
    contentPage.setLayout(new FillLayout());
    pageBook.showPage(contentPage);
    propertySheet = getPropertySheet((PageSite) tabbedPropertySheetPage.getSite());
    createControls(contentPage);
    partListener = new PartListener(this, tabbedPropertySheetPage);
    perspectiveListener = new PerspectiveListener(this, tabbedPropertySheetPage.getSite(), propertySheet);
    JvmModel.getInstance().addJvmModelChangeListener(this);
    suspendRefresh = false;
}
Also used : PageSite(org.eclipse.ui.part.PageSite) PageBook(org.eclipse.ui.part.PageBook) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) FillLayout(org.eclipse.swt.layout.FillLayout)

Aggregations

FillLayout (org.eclipse.swt.layout.FillLayout)1 GridData (org.eclipse.swt.layout.GridData)1 Composite (org.eclipse.swt.widgets.Composite)1 PageBook (org.eclipse.ui.part.PageBook)1 PageSite (org.eclipse.ui.part.PageSite)1