use of bndtools.editor.project.BuildPathPart in project bndtools by bndtools.
the class ProjectBuildPage method createFormContent.
@Override
protected void createFormContent(IManagedForm managedForm) {
managedForm.setInput(model);
FormToolkit tk = managedForm.getToolkit();
ScrolledForm form = managedForm.getForm();
form.setText("Project Build");
tk.decorateFormHeading(form.getForm());
form.getForm().addMessageHyperlinkListener(new MessageHyperlinkAdapter(getEditor()));
GridLayout layout;
GridData gd;
// Create Controls
Composite body = form.getBody();
body.setLayout(new FillLayout());
MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
sashForm.setSashWidth(6);
tk.adapt(sashForm, false, false);
sashForm.hookResizeListener();
Composite leftPanel = tk.createComposite(sashForm);
gd = new GridData(SWT.FILL, SWT.FILL, true, true);
leftPanel.setLayoutData(gd);
layout = new GridLayout(1, false);
leftPanel.setLayout(layout);
SubBundlesPart subBundlesPart = new SubBundlesPart(leftPanel, tk, Section.TITLE_BAR | Section.EXPANDED | Section.DESCRIPTION);
managedForm.addPart(subBundlesPart);
gd = new GridData(SWT.FILL, SWT.FILL, true, false);
subBundlesPart.getSection().setLayoutData(gd);
BuildPathPart buildPathPart = new BuildPathPart(leftPanel, tk, Section.TITLE_BAR | Section.EXPANDED | Section.DESCRIPTION);
managedForm.addPart(buildPathPart);
gd = new GridData(SWT.FILL, SWT.FILL, true, true);
gd.widthHint = 50;
gd.heightHint = 50;
buildPathPart.getSection().setLayoutData(gd);
Composite rightPanel = tk.createComposite(sashForm);
gd = new GridData(SWT.FILL, SWT.FILL, true, true);
rightPanel.setLayoutData(gd);
BuildOperationsPart buildOpsPart = new BuildOperationsPart(rightPanel, tk, Section.TITLE_BAR | Section.EXPANDED | Section.DESCRIPTION);
managedForm.addPart(buildOpsPart);
gd = new GridData(SWT.FILL, SWT.FILL, true, false);
buildOpsPart.getSection().setLayoutData(gd);
layout = new GridLayout(1, false);
rightPanel.setLayout(layout);
reportProblemsInHeader();
}
Aggregations