Search in sources :

Example 6 with ScrolledPageContent

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;
}
Also used : ScrolledPageContent(org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) Label(org.eclipse.swt.widgets.Label)

Example 7 with ScrolledPageContent

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;
}
Also used : ScrolledPageContent(org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) ExpandableComposite(org.eclipse.ui.forms.widgets.ExpandableComposite) GridData(org.eclipse.swt.layout.GridData) Label(org.eclipse.swt.widgets.Label) ExpandableComposite(org.eclipse.ui.forms.widgets.ExpandableComposite)

Aggregations

GridLayout (org.eclipse.swt.layout.GridLayout)7 Composite (org.eclipse.swt.widgets.Composite)7 ScrolledPageContent (org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent)7 GridData (org.eclipse.swt.layout.GridData)6 Label (org.eclipse.swt.widgets.Label)6 ExpandableComposite (org.eclipse.ui.forms.widgets.ExpandableComposite)4 SelectionEvent (org.eclipse.swt.events.SelectionEvent)2 HashMap (java.util.HashMap)1 Map (java.util.Map)1 ModifyEvent (org.eclipse.swt.events.ModifyEvent)1 ModifyListener (org.eclipse.swt.events.ModifyListener)1 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)1 SelectionListener (org.eclipse.swt.events.SelectionListener)1 Button (org.eclipse.swt.widgets.Button)1 Link (org.eclipse.swt.widgets.Link)1 Text (org.eclipse.swt.widgets.Text)1 PreferenceLinkArea (org.eclipse.ui.dialogs.PreferenceLinkArea)1 IWorkbenchPreferenceContainer (org.eclipse.ui.preferences.IWorkbenchPreferenceContainer)1