use of bndtools.editor.workspace.PluginPathPart in project bndtools by bndtools.
the class WorkspacePage method createFormContent.
@Override
protected void createFormContent(IManagedForm managedForm) {
managedForm.setInput(model);
FormToolkit tk = managedForm.getToolkit();
ScrolledForm form = managedForm.getForm();
form.setText("Workspace Config");
tk.decorateFormHeading(form.getForm());
form.getForm().addMessageHyperlinkListener(new MessageHyperlinkAdapter(getEditor()));
// Create controls
Composite body = form.getBody();
WorkspaceMainPart linksPart = new WorkspaceMainPart(mainBuildFile, body, tk, Section.TITLE_BAR | Section.EXPANDED | Section.DESCRIPTION);
managedForm.addPart(linksPart);
PluginPathPart pluginPathPart = new PluginPathPart(body, tk, Section.TITLE_BAR | Section.EXPANDED | Section.DESCRIPTION | Section.TWISTIE);
managedForm.addPart(pluginPathPart);
pluginsPart = new PluginsPart(body, tk, Section.TITLE_BAR | Section.EXPANDED | Section.DESCRIPTION | Section.TWISTIE);
managedForm.addPart(pluginsPart);
// Layout
GridLayout layout = new GridLayout(1, false);
body.setLayout(layout);
linksPart.getSection().setLayoutData(PageLayoutUtils.createCollapsed());
pluginPathPart.getSection().setLayoutData(PageLayoutUtils.createExpanded());
pluginPathPart.getSection().addExpansionListener(new ResizeExpansionAdapter(pluginPathPart.getSection()));
pluginsPart.getSection().setLayoutData(PageLayoutUtils.createExpanded());
pluginsPart.getSection().addExpansionListener(new ResizeExpansionAdapter(pluginsPart.getSection()));
}
Aggregations