Search in sources :

Example 1 with ExportPatternsListPart

use of bndtools.editor.exports.ExportPatternsListPart in project bndtools by bndtools.

the class BundleContentPage method createLeftPanel.

void createLeftPanel(IManagedForm mform, Composite parent) {
    FormToolkit toolkit = mform.getToolkit();
    GeneralInfoPart infoPart = new GeneralInfoPart(parent, toolkit, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
    mform.addPart(infoPart);
    privPkgsPart = new PrivatePackagesPart(parent, toolkit, Section.TITLE_BAR | Section.EXPANDED);
    mform.addPart(privPkgsPart);
    exportPatternListPart = new ExportPatternsListPart(parent, toolkit, Section.TITLE_BAR | Section.EXPANDED);
    mform.addPart(exportPatternListPart);
    // LAYOUT
    GridData gd;
    GridLayout layout;
    layout = new GridLayout(1, false);
    parent.setLayout(layout);
    gd = new GridData(SWT.FILL, SWT.FILL, true, false);
    infoPart.getSection().setLayoutData(gd);
    gd = new GridData(SWT.FILL, SWT.FILL, true, true);
    privPkgsPart.getSection().setLayoutData(gd);
    gd = new GridData(SWT.FILL, SWT.FILL, true, true);
    exportPatternListPart.getSection().setLayoutData(gd);
}
Also used : GeneralInfoPart(bndtools.editor.contents.GeneralInfoPart) ExportPatternsListPart(bndtools.editor.exports.ExportPatternsListPart) GridLayout(org.eclipse.swt.layout.GridLayout) FormToolkit(org.eclipse.ui.forms.widgets.FormToolkit) PrivatePackagesPart(bndtools.editor.contents.PrivatePackagesPart) GridData(org.eclipse.swt.layout.GridData)

Aggregations

GeneralInfoPart (bndtools.editor.contents.GeneralInfoPart)1 PrivatePackagesPart (bndtools.editor.contents.PrivatePackagesPart)1 ExportPatternsListPart (bndtools.editor.exports.ExportPatternsListPart)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 FormToolkit (org.eclipse.ui.forms.widgets.FormToolkit)1