use of bndtools.editor.contents.GeneralInfoPart 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);
}
Aggregations