use of bndtools.editor.contents.TestSuitesPart in project bndtools by bndtools.
the class TestSuitesPage method createFormContent.
@Override
protected void createFormContent(IManagedForm managedForm) {
managedForm.setInput(model);
FormToolkit toolkit = managedForm.getToolkit();
ScrolledForm form = managedForm.getForm();
form.setText("Tests");
form.setImage(junitImg);
toolkit.decorateFormHeading(form.getForm());
form.getForm().addMessageHyperlinkListener(new MessageHyperlinkAdapter(getEditor()));
Composite body = form.getBody();
MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
sashForm.setSashWidth(6);
toolkit.adapt(sashForm, false, false);
Composite leftPanel = toolkit.createComposite(sashForm);
Composite rightPanel = toolkit.createComposite(sashForm);
TestSuitesPart suitesPart = new TestSuitesPart(leftPanel, toolkit, Section.TITLE_BAR | Section.EXPANDED);
managedForm.addPart(suitesPart);
SaneDetailsPart detailsPart = new SaneDetailsPart();
managedForm.addPart(detailsPart);
// TODO: add details pages here
detailsPart.createContents(toolkit, rightPanel);
sashForm.hookResizeListener();
// LAYOUT
body.setLayout(new FillLayout());
GridLayout layout;
GridData gd;
layout = new GridLayout();
leftPanel.setLayout(layout);
gd = new GridData(SWT.FILL, SWT.FILL, true, true);
suitesPart.getSection().setLayoutData(gd);
layout = new GridLayout();
rightPanel.setLayout(layout);
}
Aggregations