use of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent in project liferay-ide by liferay.
the class ProjectValidationSettingsPage method createValidationSection.
protected Composite createValidationSection(Composite parent) {
GridLayout layout = new GridLayout();
layout.numColumns = 2;
layout.marginHeight = 0;
layout.marginWidth = 0;
final ScrolledPageContent pageContent = new ScrolledPageContent(parent);
pageContent.setLayoutData(new GridData(GridData.FILL_BOTH));
pageContent.setExpandHorizontal(true);
pageContent.setExpandVertical(true);
Composite body = pageContent.getBody();
body.setLayout(layout);
GridData gd = new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1);
gd.horizontalIndent = 0;
Label description = new Label(body, SWT.NONE);
description.setText(Msgs.selectSeverityLevelLabel);
description.setFont(pageContent.getFont());
description.setLayoutData(gd);
return parent;
}
use of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent in project liferay-ide by liferay.
the class WorkflowValidationSettingsPage method createValidationSection.
protected Composite createValidationSection(Composite parent) {
GridLayout layout = new GridLayout();
layout.numColumns = 2;
layout.marginHeight = 0;
layout.marginWidth = 0;
ScrolledPageContent pageContent = new ScrolledPageContent(parent);
pageContent.setLayoutData(new GridData(GridData.FILL_BOTH));
pageContent.setExpandHorizontal(true);
pageContent.setExpandVertical(true);
Composite body = pageContent.getBody();
body.setLayout(layout);
GridData gd = new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1);
gd.horizontalIndent = 0;
Label description = new Label(body, SWT.NONE);
description.setText("Select the severity level for the following validation problems:");
description.setFont(pageContent.getFont());
description.setLayoutData(gd);
ExpandableComposite twistie;
int columns = 3;
twistie = createTwistie(body, "Workflow Validation", columns);
twistie.setBackground(parent.getBackground());
Composite inner = createInnerComposite(parent, twistie, columns);
inner = createInnerComposite(parent, twistie, columns);
createCombo(inner, "Default workflow validation (logical)", WorkflowDefinitionValidator.WORKFLOW_DEFINITION_VALIDATE);
return parent;
}
Aggregations