Search in sources :

Example 1 with ImportPatternsListPart

use of bndtools.editor.imports.ImportPatternsListPart in project bndtools by bndtools.

the class BundleContentPage method createRightPanel.

void createRightPanel(IManagedForm mform, final Composite parent) {
    FormToolkit toolkit = mform.getToolkit();
    BundleCalculatedImportsPart importsPart = new BundleCalculatedImportsPart(parent, toolkit, Section.TITLE_BAR | Section.EXPANDED);
    mform.addPart(importsPart);
    importPatternListPart = new ImportPatternsListPart(parent, toolkit, Section.TITLE_BAR | Section.TWISTIE);
    mform.addPart(importPatternListPart);
    GridLayout layout;
    GridData gd;
    layout = new GridLayout();
    parent.setLayout(layout);
    gd = new GridData(SWT.FILL, SWT.FILL, true, true);
    gd.widthHint = 100;
    gd.heightHint = 200;
    importsPart.getSection().setLayoutData(gd);
    gd = new GridData(SWT.FILL, SWT.FILL, true, false);
    importPatternListPart.getSection().setLayoutData(gd);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) BundleCalculatedImportsPart(bndtools.editor.contents.BundleCalculatedImportsPart) FormToolkit(org.eclipse.ui.forms.widgets.FormToolkit) ImportPatternsListPart(bndtools.editor.imports.ImportPatternsListPart) GridData(org.eclipse.swt.layout.GridData)

Aggregations

BundleCalculatedImportsPart (bndtools.editor.contents.BundleCalculatedImportsPart)1 ImportPatternsListPart (bndtools.editor.imports.ImportPatternsListPart)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 FormToolkit (org.eclipse.ui.forms.widgets.FormToolkit)1