Search in sources :

Example 1 with ScrolledPageContent

use of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent in project liferay-ide by liferay.

the class PluginValidationSettingsPage 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);
    body.setBackground(parent.getBackground());
    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.selectSeverityLevel);
    description.setFont(pageContent.getFont());
    description.setLayoutData(gd);
    ExpandableComposite twistie;
    int columns = 3;
    twistie = createTwistie(body, Msgs.portletXMLDescriptor, columns);
    twistie.setBackground(parent.getBackground());
    Composite inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, Msgs.syntaxInvalid, ValidationPreferences.PORTLET_XML_SYNTAX_INVALID);
    createCombo(inner, Msgs.typeNotFound, ValidationPreferences.PORTLET_XML_TYPE_NOT_FOUND);
    createCombo(inner, Msgs.typeHierarchyIncorrect, ValidationPreferences.PORTLET_XML_TYPE_HIERARCHY_INCORRECT);
    createCombo(inner, Msgs.resourceNotFound, ValidationPreferences.PORTLET_XML_RESOURCE_NOT_FOUND);
    createCombo(inner, Msgs.referenceNotFound, ValidationPreferences.PORTLET_XML_REFERENCE_NOT_FOUND);
    twistie = createTwistie(body, Msgs.serviceXMLDescriptor, columns);
    twistie.setBackground(parent.getBackground());
    inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, Msgs.syntaxInvalid, ValidationPreferences.SERVICE_XML_SYNTAX_INVALID);
    createCombo(inner, Msgs.typeNotFound, ValidationPreferences.SERVICE_XML_TYPE_NOT_FOUND);
    createCombo(inner, Msgs.typeHierarchyIncorrect, ValidationPreferences.SERVICE_XML_TYPE_HIERARCHY_INCORRECT);
    createCombo(inner, Msgs.resourceNotFound, ValidationPreferences.SERVICE_XML_RESOURCE_NOT_FOUND);
    createCombo(inner, Msgs.referenceNotFound, ValidationPreferences.SERVICE_XML_REFERENCE_NOT_FOUND);
    twistie = createTwistie(body, Msgs.liferayPortletXMLDescriptor, columns);
    twistie.setBackground(parent.getBackground());
    inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, Msgs.syntaxInvalid, ValidationPreferences.LIFERAY_PORTLET_XML_SYNTAX_INVALID);
    createCombo(inner, Msgs.typeNotFound, ValidationPreferences.LIFERAY_PORTLET_XML_TYPE_NOT_FOUND);
    createCombo(inner, Msgs.typeHierarchyIncorrect, ValidationPreferences.LIFERAY_PORTLET_XML_TYPE_HIERARCHY_INCORRECT);
    createCombo(inner, Msgs.resourceNotFound, ValidationPreferences.LIFERAY_PORTLET_XML_RESOURCE_NOT_FOUND);
    createCombo(inner, Msgs.referenceNotFound, ValidationPreferences.LIFERAY_PORTLET_XML_REFERENCE_NOT_FOUND);
    twistie = createTwistie(body, Msgs.liferayHookXMLDescriptor, columns);
    twistie.setBackground(parent.getBackground());
    inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, Msgs.syntaxInvalid, ValidationPreferences.LIFERAY_HOOK_XML_SYNTAX_INVALID);
    createCombo(inner, Msgs.typeNotFound, ValidationPreferences.LIFERAY_HOOK_XML_TYPE_NOT_FOUND);
    createCombo(inner, Msgs.typeHierarchyIncorrect, ValidationPreferences.LIFERAY_HOOK_XML_TYPE_HIERARCHY_INCORRECT);
    createCombo(inner, Msgs.resourceNotFound, ValidationPreferences.LIFERAY_HOOK_XML_RESOURCE_NOT_FOUND);
    createCombo(inner, Msgs.referenceNotFound, ValidationPreferences.LIFERAY_HOOK_XML_REFERENCE_NOT_FOUND);
    twistie = createTwistie(body, Msgs.liferayDisplayXMLDescriptor, columns);
    twistie.setBackground(parent.getBackground());
    inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, Msgs.syntaxInvalid, ValidationPreferences.LIFERAY_DISPLAY_XML_SYNTAX_INVALID);
    createCombo(inner, Msgs.typeNotFound, ValidationPreferences.LIFERAY_DISPLAY_XML_TYPE_NOT_FOUND);
    createCombo(inner, Msgs.typeHierarchyIncorrect, ValidationPreferences.LIFERAY_DISPLAY_XML_TYPE_HIERARCHY_INCORRECT);
    createCombo(inner, Msgs.resourceNotFound, ValidationPreferences.LIFERAY_DISPLAY_XML_RESOURCE_NOT_FOUND);
    createCombo(inner, Msgs.referenceNotFound, ValidationPreferences.LIFERAY_DISPLAY_XML_REFERENCE_NOT_FOUND);
    twistie = createTwistie(body, Msgs.liferayLayoutTemplatesDescriptor, columns);
    twistie.setBackground(parent.getBackground());
    inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, Msgs.syntaxInvalid, ValidationPreferences.LIFERAY_LAYOUTTPL_XML_SYNTAX_INVALID);
    createCombo(inner, Msgs.typeNotFound, ValidationPreferences.LIFERAY_LAYOUTTPL_XML_TYPE_NOT_FOUND);
    createCombo(inner, Msgs.typeHierarchyIncorrect, ValidationPreferences.LIFERAY_LAYOUTTPL_XML_TYPE_HIERARCHY_INCORRECT);
    createCombo(inner, Msgs.resourceNotFound, ValidationPreferences.LIFERAY_LAYOUTTPL_XML_RESOURCE_NOT_FOUND);
    createCombo(inner, Msgs.referenceNotFound, ValidationPreferences.LIFERAY_LAYOUTTPL_XML_REFERENCE_NOT_FOUND);
    twistie = createTwistie(body, Msgs.liferayJspFiles, columns);
    twistie.setBackground(parent.getBackground());
    inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, Msgs.syntaxInvalid, ValidationPreferences.LIFERAY_JSP_SYNTAX_INVALID);
    createCombo(inner, Msgs.typeNotFound, ValidationPreferences.LIFERAY_JSP_TYPE_NOT_FOUND);
    createCombo(inner, Msgs.typeHierarchyIncorrect, ValidationPreferences.LIFERAY_JSP_TYPE_HIERARCHY_INCORRECT);
    createCombo(inner, Msgs.methodNotFound, ValidationPreferences.LIFERAY_JSP_METHOD_NOT_FOUND);
    createCombo(inner, Msgs.resourceNotFound, ValidationPreferences.LIFERAY_JSP_RESOURCE_NOT_FOUND);
    createCombo(inner, Msgs.referenceNotFound, ValidationPreferences.LIFERAY_JSP_REFERENCE_NOT_FOUND);
    createCombo(inner, Msgs.propertyNotFound, ValidationPreferences.LIFERAY_JSP_PROPERTY_NOT_FOUND);
    createCombo(inner, Msgs.staticValueUndefined, ValidationPreferences.LIFERAY_JSP_STATIC_VALUE_UNDEFINED);
    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)

Example 2 with ScrolledPageContent

use of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent in project webtools.sourceediting by eclipse.

the class JSPValidationPreferencePage method createValidationSection.

private Composite createValidationSection(Composite page) {
    int nColumns = 3;
    final ScrolledPageContent spContent = new ScrolledPageContent(page);
    Composite composite = spContent.getBody();
    GridLayout layout = new GridLayout(nColumns, false);
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    composite.setLayout(layout);
    Label description = new Label(composite, SWT.NONE);
    description.setText(JSPUIMessages.Validation_description);
    description.setFont(page.getFont());
    String[] errorWarningIgnoreLabels = new String[] { JSPUIMessages.Validation_Error, JSPUIMessages.Validation_Warning, JSPUIMessages.Validation_Ignore };
    Composite section;
    // begin directives section
    section = createStyleSectionWithContentComposite(composite, JSPUIMessages.VALIDATION_HEADER_DIRECTIVE, nColumns);
    addComboBox(section, JSPUIMessages.VALIDATION_DIRECTIVE_TAGLIB_UNRESOLVABLE_URI_OR_TAGDIR, JSPCorePreferenceNames.VALIDATION_DIRECTIVE_TAGLIB_UNRESOLVABLE_URI_OR_TAGDIR, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_DIRECTIVE_TAGLIB_DUPLICATE_PREFIXES_DIFFERENT_URIS, JSPCorePreferenceNames.VALIDATION_DIRECTIVE_TAGLIB_DUPLICATE_PREFIXES_DIFFERENT_URIS, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_DIRECTIVE_TAGLIB_DUPLICATE_PREFIXES_SAME_URIS, JSPCorePreferenceNames.VALIDATION_DIRECTIVE_TAGLIB_DUPLICATE_PREFIXES_SAME_URIS, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_DIRECTIVE_TAGLIB_MISSING_PREFIX, JSPCorePreferenceNames.VALIDATION_DIRECTIVE_TAGLIB_MISSING_PREFIX, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_DIRECTIVE_TAGLIB_MISSING_URI_OR_TAGDIR, JSPCorePreferenceNames.VALIDATION_DIRECTIVE_TAGLIB_MISSING_URI_OR_TAGDIR, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_DIRECTIVE_INCLUDE_FILE_NOT_FOUND, JSPCorePreferenceNames.VALIDATION_DIRECTIVE_INCLUDE_FILE_NOT_FOUND, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_DIRECTIVE_INCLUDE_NO_FILE_SPECIFIED, JSPCorePreferenceNames.VALIDATION_DIRECTIVE_INCLUDE_NO_FILE_SPECIFIED, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_DIRECTIVE_ATTRIBUTE_DUPLICATE_NAME, JSPCorePreferenceNames.VALIDATION_DIRECTIVE_ATTRIBUTE_DUPLICATE_NAME, SEVERITIES, errorWarningIgnoreLabels, 0);
    // addComboBox(section, JSPUIMessages.VALIDATION_DIRECTIVE_PAGE_SUPERCLASS_NOT_FOUND, JSPCorePreferenceNames.VALIDATION_DIRECTIVE_PAGE_SUPERCLASS_NOT_FOUND, SEVERITIES, errorWarningIgnoreLabels, 0);
    // end directives section
    // begin custom actions section
    section = createStyleSectionWithContentComposite(composite, JSPUIMessages.VALIDATION_HEADER_CUSTOM_ACTIONS, nColumns);
    addComboBox(section, JSPUIMessages.VALIDATION_ACTIONS_SEVERITY_MISSING_REQUIRED_ATTRIBUTE, JSPCorePreferenceNames.VALIDATION_ACTIONS_SEVERITY_MISSING_REQUIRED_ATTRIBUTE, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_ACTIONS_SEVERITY_UNKNOWN_ATTRIBUTE, JSPCorePreferenceNames.VALIDATION_ACTIONS_SEVERITY_UNKNOWN_ATTRIBUTE, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_ACTIONS_SEVERITY_UNEXPECTED_RTEXPRVALUE, JSPCorePreferenceNames.VALIDATION_ACTIONS_SEVERITY_UNEXPECTED_RTEXPRVALUE, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_ACTIONS_SEVERITY_NON_EMPTY_INLINE_TAG, JSPCorePreferenceNames.VALIDATION_ACTIONS_SEVERITY_NON_EMPTY_INLINE_TAG, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_TRANSLATION_TEI_VALIDATION_MESSAGE, JSPCorePreferenceNames.VALIDATION_TRANSLATION_TEI_VALIDATION_MESSAGE, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_TRANSLATION_TEI_CLASS_NOT_FOUND, JSPCorePreferenceNames.VALIDATION_TRANSLATION_TEI_CLASS_NOT_FOUND, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_TRANSLATION_TEI_CLASS_NOT_INSTANTIATED, JSPCorePreferenceNames.VALIDATION_TRANSLATION_TEI_CLASS_NOT_INSTANTIATED, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_TRANSLATION_TEI_CLASS_RUNTIME_EXCEPTION, JSPCorePreferenceNames.VALIDATION_TRANSLATION_TEI_CLASS_RUNTIME_EXCEPTION, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_TRANSLATION_TAG_HANDLER_CLASS_NOT_FOUND, JSPCorePreferenceNames.VALIDATION_TRANSLATION_TAG_HANDLER_CLASS_NOT_FOUND, SEVERITIES, errorWarningIgnoreLabels, 0);
    // end custom actions section
    // begin standard actions section
    section = createStyleSectionWithContentComposite(composite, JSPUIMessages.VALIDATION_HEADER_STANDARD_ACTIONS, nColumns);
    addComboBox(section, JSPUIMessages.VALIDATION_TRANSLATION_USEBEAN_INVALID_ID, JSPCorePreferenceNames.VALIDATION_TRANSLATION_USEBEAN_INVALID_ID, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_TRANSLATION_USBEAN_MISSING_TYPE_INFO, JSPCorePreferenceNames.VALIDATION_TRANSLATION_USBEAN_MISSING_TYPE_INFO, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_TRANSLATION_USEBEAN_AMBIGUOUS_TYPE_INFO, JSPCorePreferenceNames.VALIDATION_TRANSLATION_USEBEAN_AMBIGUOUS_TYPE_INFO, SEVERITIES, errorWarningIgnoreLabels, 0);
    // end standard actions section
    // begin Java severity override section
    section = createStyleSectionWithContentComposite(composite, JSPUIMessages.VALIDATION_HEADER_JAVA, nColumns);
    if (getProject() == null) {
        new PreferenceLinkArea(section, SWT.WRAP | SWT.MULTI, JAVA_SEVERITY_PREFERENCE_PAGE, JSPUIMessages.VALIDATION_JAVA_NOTICE, (IWorkbenchPreferenceContainer) getContainer(), null).getControl().setLayoutData(GridDataFactory.fillDefaults().span(2, 1).indent(0, 0).hint(150, SWT.DEFAULT).create());
    } else {
        final Map data = new HashMap();
        data.put(DATA_NO_LINK, Boolean.TRUE);
        Link link = new Link(section, SWT.WRAP | SWT.MULTI);
        link.setLayoutData(GridDataFactory.fillDefaults().span(2, 1).indent(0, 0).hint(150, SWT.DEFAULT).create());
        link.setText(JSPUIMessages.VALIDATION_JAVA_NOTICE);
        link.addSelectionListener(new SelectionAdapter() {

            public void widgetSelected(SelectionEvent e) {
                IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
                container.openPage(JAVA_SEVERITY_PROPERTY_PAGE, data);
            }
        });
    // new PreferenceLinkArea(section, SWT.WRAP | SWT.MULTI | SWT.LEFT_TO_RIGHT, JAVA_SEVERITY_PROPERTY_PAGE, JSPUIMessages.VALIDATION_JAVA_NOTICE, (IWorkbenchPreferenceContainer) getContainer(), data).getControl().setLayoutData(GridDataFactory.fillDefaults().span(2, 1).indent(0, 0).hint(150, SWT.DEFAULT).create());
    // open in same shell?
    // PreferencesUtil.createPropertyDialogOn(getShell(), getProject(), JAVA_SEVERITY_PROPERTY_PAGE, new String[] { JAVA_SEVERITY_PROPERTY_PAGE }, data).open();
    }
    int sectionIndent = convertWidthInCharsToPixels(2);
    addComboBox(section, JSPUIMessages.VALIDATION_JAVA_LOCAL_VARIABLE_NEVER_USED, JSPCorePreferenceNames.VALIDATION_JAVA_LOCAL_VARIABLE_NEVER_USED, SEVERITIES, errorWarningIgnoreLabels, sectionIndent);
    addComboBox(section, JSPUIMessages.VALIDATION_JAVA_ARGUMENT_IS_NEVER_USED, JSPCorePreferenceNames.VALIDATION_JAVA_ARGUMENT_IS_NEVER_USED, SEVERITIES, errorWarningIgnoreLabels, sectionIndent);
    addComboBox(section, JSPUIMessages.VALIDATION_JAVA_NULL_LOCAL_VARIABLE_REFERENCE, JSPCorePreferenceNames.VALIDATION_JAVA_NULL_LOCAL_VARIABLE_REFERENCE, SEVERITIES, errorWarningIgnoreLabels, sectionIndent);
    addComboBox(section, JSPUIMessages.VALIDATION_JAVA_POTENTIAL_NULL_LOCAL_VARIABLE_REFERENCE, JSPCorePreferenceNames.VALIDATION_JAVA_POTENTIAL_NULL_LOCAL_VARIABLE_REFERENCE, SEVERITIES, errorWarningIgnoreLabels, sectionIndent);
    addComboBox(section, JSPUIMessages.VALIDATION_JAVA_UNUSED_IMPORT, JSPCorePreferenceNames.VALIDATION_JAVA_UNUSED_IMPORT, SEVERITIES, errorWarningIgnoreLabels, sectionIndent);
    // end Java severity override section
    // begin EL section
    section = createStyleSectionWithContentComposite(composite, JSPUIMessages.VALIDATION_HEADER_EL, nColumns);
    addComboBox(section, JSPUIMessages.VALIDATION_EL_SYNTAX, JSPCorePreferenceNames.VALIDATION_EL_SYNTAX, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_EL_LEXER, JSPCorePreferenceNames.VALIDATION_EL_LEXER, SEVERITIES, errorWarningIgnoreLabels, 0);
    addComboBox(section, JSPUIMessages.VALIDATION_EL_FUNCTION_UNDEFINED, JSPCorePreferenceNames.VALIDATION_EL_FUNCTION_UNDEFINED, SEVERITIES, errorWarningIgnoreLabels, 0);
    // end EL section
    restoreSectionExpansionStates(getDialogSettings().getSection(SETTINGS_SECTION_NAME));
    return spContent;
}
Also used : ScrolledPageContent(org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent) Composite(org.eclipse.swt.widgets.Composite) HashMap(java.util.HashMap) SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) Label(org.eclipse.swt.widgets.Label) PreferenceLinkArea(org.eclipse.ui.dialogs.PreferenceLinkArea) GridLayout(org.eclipse.swt.layout.GridLayout) IWorkbenchPreferenceContainer(org.eclipse.ui.preferences.IWorkbenchPreferenceContainer) SelectionEvent(org.eclipse.swt.events.SelectionEvent) HashMap(java.util.HashMap) Map(java.util.Map) Link(org.eclipse.swt.widgets.Link)

Example 3 with ScrolledPageContent

use of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent in project webtools.sourceediting by eclipse.

the class XSLValidationPreferencePage 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;
    createLabel(body, Messages.XSLValidationPreferenceMaxErrorsLabel);
    maxErrorsText = createTextField(body);
    maxErrorsText.addModifyListener(this);
    Label description = new Label(body, SWT.NONE);
    description.setText(Messages.XSLValidationPageSeverityLevel);
    description.setFont(pageContent.getFont());
    description.setLayoutData(gd);
    ExpandableComposite twistie;
    int columns = 3;
    twistie = createTwistie(body, Messages.XSLValidationPreferenceImportsIncludesLabel, columns);
    Composite inner = createInnerComposite(parent, twistie, columns);
    String label = Messages.XSLValidationPreferenceUnresolveImportIncludeLabel;
    createCombo(inner, label, ValidationPreferences.MISSING_INCLUDE);
    inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, label, ValidationPreferences.MISSING_INCLUDE);
    createCombo(inner, Messages.XSLValidationPreferenceCircularReferencesLabel, ValidationPreferences.CIRCULAR_REF);
    twistie = createTwistie(body, Messages.XSLValidationPreferenceNamedTemplatesLabel, columns);
    inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, Messages.XSLValidationPreferenceTemplateConflictsLabel, ValidationPreferences.TEMPLATE_CONFLICT);
    createCombo(inner, Messages.XSLValidationPreferenceDuplicateParameterLabel, ValidationPreferences.DUPLICATE_PARAMETER);
    createCombo(inner, Messages.XSLValidationPreferenceParamtersWithoutValueLabel, ValidationPreferences.NAME_ATTRIBUTE_MISSING);
    createCombo(inner, Messages.XSLValidationPreferenceMissingParameterAttributeLabel, ValidationPreferences.NAME_ATTRIBUTE_EMPTY);
    twistie = createTwistie(body, Messages.XSLValidationPreferenceCallTemplatesLabel, columns);
    inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, Messages.XSLValidationPreferenceUnresolvedTemplatesLabel, ValidationPreferences.CALL_TEMPLATES);
    createCombo(inner, Messages.XSLValidationPreferenceMissingParamtersLabel, ValidationPreferences.MISSING_PARAM);
    createCombo(inner, Messages.XSLValidationPreferenceMissingParameterAttributeLabel, ValidationPreferences.EMPTY_PARAM);
    twistie = createTwistie(body, Messages.XSLValidationPreferenceXPathLabel, columns);
    inner = createInnerComposite(parent, twistie, columns);
    createCombo(inner, Messages.XSLValidationPreferenceXPathSyntaxLabel, ValidationPreferences.XPATHS);
    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)

Example 4 with ScrolledPageContent

use of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent in project webtools.sourceediting by eclipse.

the class HTMLValidationPreferencePage method createValidationSection.

private Composite createValidationSection(Composite page) {
    int nColumns = 3;
    final ScrolledPageContent spContent = new ScrolledPageContent(page);
    Composite composite = spContent.getBody();
    GridLayout layout = new GridLayout(nColumns, false);
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    composite.setLayout(layout);
    // Ignored Element Names Pattern
    BooleanData ignoreData = new BooleanData(HTMLCorePreferenceNames.IGNORE_ELEMENT_NAMES);
    fIgnoreElementNames = new Button(composite, SWT.CHECK);
    fIgnoreElementNames.setData(ignoreData);
    fIgnoreElementNames.setFont(page.getFont());
    fIgnoreElementNames.setText(HTMLUIMessages.IgnoreElementNames);
    fIgnoreElementNames.setEnabled(true);
    boolean ignoreElementNamesIsSelected = fPreferencesService.getBoolean(getPreferenceNodeQualifier(), ignoreData.getKey(), HTMLCorePreferenceNames.IGNORE_ELEMENT_NAMES_DEFAULT, createPreferenceScopes());
    ignoreData.setValue(ignoreElementNamesIsSelected);
    ignoreData.originalValue = fUseElementsOriginOverrides ? fIgnoreElementNamesOriginOverride : ignoreElementNamesIsSelected;
    fIgnoreElementNames.setSelection(ignoreData.getValue());
    fIgnoreElementNames.addSelectionListener(new SelectionListener() {

        public void widgetDefaultSelected(SelectionEvent e) {
            controlChanged(e.widget);
        }

        public void widgetSelected(SelectionEvent e) {
            controlChanged(e.widget);
        }
    });
    fIgnoreElementNames.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
    fIgnoredElementNamesLabel = new Label(composite, SWT.LEFT | SWT.WRAP);
    fIgnoredElementNamesLabel.setFont(composite.getFont());
    fIgnoredElementNamesLabel.setEnabled(ignoreData.getValue());
    fIgnoredElementNamesLabel.setText(HTMLUIMessages.IgnoreElementNamesPattern);
    fIgnoredElementNamesLabel.setLayoutData(new GridData(SWT.FILL, SWT.END, true, false, 3, 1));
    setHorizontalIndent(fIgnoredElementNamesLabel, 20);
    TextData data = new TextData(HTMLCorePreferenceNames.ELEMENT_NAMES_TO_IGNORE);
    fIgnoredElementNames = new Text(composite, SWT.SINGLE | SWT.BORDER);
    fIgnoredElementNames.setData(data);
    fIgnoredElementNames.setTextLimit(500);
    fIgnoredElementNames.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 3, 1));
    setHorizontalIndent(fIgnoredElementNames, 20);
    setWidthHint(fIgnoredElementNames, convertWidthInCharsToPixels(65));
    String ignoredElementNames = fPreferencesService.getString(getPreferenceNodeQualifier(), data.getKey(), HTMLCorePreferenceNames.ELEMENT_NAMES_TO_IGNORE_DEFAULT, createPreferenceScopes());
    data.setValue(ignoredElementNames);
    data.originalValue = fUseElementsOriginOverrides ? fIgnoredElementNamesOriginOverride : ignoredElementNames;
    fIgnoredElementNames.setText(data.getValue());
    fIgnoredElementNames.addModifyListener(new ModifyListener() {

        public void modifyText(ModifyEvent e) {
            if (verifyIgnoredNames(fIgnoredElementNames.getText().trim())) {
                controlChanged(e.widget);
            }
        }
    });
    controlChanged(fIgnoreElementNames);
    // Ignored Attribute Names Pattern
    ignoreData = new BooleanData(HTMLCorePreferenceNames.IGNORE_ATTRIBUTE_NAMES);
    fIgnoreAttributeNames = new Button(composite, SWT.CHECK);
    fIgnoreAttributeNames.setData(ignoreData);
    fIgnoreAttributeNames.setFont(page.getFont());
    fIgnoreAttributeNames.setText(HTMLUIMessages.IgnoreAttributeNames);
    fIgnoreAttributeNames.setEnabled(true);
    boolean ignoreAttributeNamesIsSelected = fPreferencesService.getBoolean(getPreferenceNodeQualifier(), ignoreData.getKey(), HTMLCorePreferenceNames.IGNORE_ATTRIBUTE_NAMES_DEFAULT, createPreferenceScopes());
    ignoreData.setValue(ignoreAttributeNamesIsSelected);
    ignoreData.originalValue = fUseAttributesOriginOverrides ? fIgnoreAttributeNamesOriginOverride : ignoreAttributeNamesIsSelected;
    fIgnoreAttributeNames.setSelection(ignoreData.getValue());
    fIgnoreAttributeNames.addSelectionListener(new SelectionListener() {

        public void widgetDefaultSelected(SelectionEvent e) {
            controlChanged(e.widget);
        }

        public void widgetSelected(SelectionEvent e) {
            controlChanged(e.widget);
        }
    });
    fIgnoreAttributeNames.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
    fIgnoredAttributeNamesLabel = new Label(composite, SWT.LEFT | SWT.WRAP);
    fIgnoredAttributeNamesLabel.setFont(composite.getFont());
    fIgnoredAttributeNamesLabel.setEnabled(ignoreData.getValue());
    fIgnoredAttributeNamesLabel.setText(HTMLUIMessages.IgnoreAttributeNamesPattern);
    fIgnoredAttributeNamesLabel.setLayoutData(new GridData(SWT.FILL, SWT.END, true, false, 3, 1));
    setHorizontalIndent(fIgnoredAttributeNamesLabel, 20);
    data = new TextData(HTMLCorePreferenceNames.ATTRIBUTE_NAMES_TO_IGNORE);
    fIgnoredAttributeNames = new Text(composite, SWT.SINGLE | SWT.BORDER);
    fIgnoredAttributeNames.setData(data);
    fIgnoredAttributeNames.setTextLimit(500);
    fIgnoredAttributeNames.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 3, 1));
    setHorizontalIndent(fIgnoredAttributeNames, 20);
    setWidthHint(fIgnoredAttributeNames, convertWidthInCharsToPixels(65));
    String ignoredAttributeNames = fPreferencesService.getString(getPreferenceNodeQualifier(), data.getKey(), HTMLCorePreferenceNames.ATTRIBUTE_NAMES_TO_IGNORE_DEFAULT, createPreferenceScopes());
    data.setValue(ignoredAttributeNames);
    data.originalValue = fUseAttributesOriginOverrides ? fIgnoredAttributeNamesOriginOverride : ignoredAttributeNames;
    fIgnoredAttributeNames.setText(data.getValue());
    fIgnoredAttributeNames.addModifyListener(new ModifyListener() {

        public void modifyText(ModifyEvent e) {
            if (verifyIgnoredNames(fIgnoredAttributeNames.getText().trim())) {
                controlChanged(e.widget);
            }
        }
    });
    controlChanged(fIgnoreAttributeNames);
    Label description = new Label(composite, SWT.NONE);
    description.setText(HTMLUIMessages.Validation_description);
    description.setFont(page.getFont());
    ExpandableComposite ec;
    Composite inner;
    String label;
    String[] errorWarningIgnoreLabel = new String[] { HTMLUIMessages.Validation_Error, HTMLUIMessages.Validation_Warning, HTMLUIMessages.Validation_Ignore };
    // Element section
    ec = createStyleSection(composite, HTMLUIMessages.Expandable_label_elements, nColumns);
    inner = new Composite(ec, SWT.NONE);
    inner.setFont(composite.getFont());
    inner.setLayout(new GridLayout(nColumns, false));
    ec.setClient(inner);
    label = HTMLUIMessages.HTMLValidationPreferencePage_8;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_UNKNOWN_NAME, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_9;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_INVALID_NAME, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_10;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_START_INVALID_CASE, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_11;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_END_INVALID_CASE, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_12;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_MISSING_START, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_13;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_MISSING_END, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_14;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_UNNECESSARY_END, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_15;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_INVALID_DIRECTIVE, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_16;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_INVALID_CONTENT, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_17;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_DUPLICATE, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_18;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_COEXISTENCE, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_19;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_UNCLOSED_START_TAG, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_20;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_UNCLOSED_END_TAG, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_21;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_INVALID_EMPTY_TAG, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_36;
    addComboBox(inner, label, HTMLCorePreferenceNames.ELEM_INVALID_TEXT, SEVERITIES, errorWarningIgnoreLabel, 0);
    // End Element Section
    // The Attribute validation section
    ec = createStyleSection(composite, HTMLUIMessages.Expandable_label_attributes, nColumns);
    inner = new Composite(ec, SWT.NONE);
    inner.setFont(composite.getFont());
    inner.setLayout(new GridLayout(nColumns, false));
    ec.setClient(inner);
    label = HTMLUIMessages.HTMLValidationPreferencePage_0;
    addComboBox(inner, label, HTMLCorePreferenceNames.ATTRIBUTE_UNDEFINED_NAME, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_1;
    addComboBox(inner, label, HTMLCorePreferenceNames.ATTRIBUTE_UNDEFINED_VALUE, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_2;
    addComboBox(inner, label, HTMLCorePreferenceNames.ATTRIBUTE_NAME_MISMATCH, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_3;
    addComboBox(inner, label, HTMLCorePreferenceNames.ATTRIBUTE_INVALID_NAME, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_4;
    addComboBox(inner, label, HTMLCorePreferenceNames.ATTRIBUTE_INVALID_VALUE, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_5;
    addComboBox(inner, label, HTMLCorePreferenceNames.ATTRIBUTE_DUPLICATE, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_6;
    addComboBox(inner, label, HTMLCorePreferenceNames.ATTRIBUTE_VALUE_MISMATCH, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_7;
    addComboBox(inner, label, HTMLCorePreferenceNames.ATTRIBUTE_VALUE_UNCLOSED, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_37;
    addComboBox(inner, label, HTMLCorePreferenceNames.ATTRIBUTE_VALUE_EQUALS_MISSING, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_35;
    addComboBox(inner, label, HTMLCorePreferenceNames.ATTRIBUTE_VALUE_RESOURCE_NOT_FOUND, SEVERITIES, errorWarningIgnoreLabel, 0);
    // End Attribute section
    // Document Type
    ec = createStyleSection(composite, HTMLUIMessages.Expandable_label_document_type, nColumns);
    inner = new Composite(ec, SWT.NONE);
    inner.setFont(composite.getFont());
    inner.setLayout(new GridLayout(nColumns, false));
    ec.setClient(inner);
    label = HTMLUIMessages.HTMLValidationPreferencePage_22;
    addComboBox(inner, label, HTMLCorePreferenceNames.DOC_DUPLICATE, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_23;
    addComboBox(inner, label, HTMLCorePreferenceNames.DOC_INVALID_CONTENT, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_24;
    addComboBox(inner, label, HTMLCorePreferenceNames.DOC_DOCTYPE_UNCLOSED, SEVERITIES, errorWarningIgnoreLabel, 0);
    // End Document Type
    // Comments
    ec = createStyleSection(composite, HTMLUIMessages.Expandable_label_comment, nColumns);
    inner = new Composite(ec, SWT.NONE);
    inner.setFont(composite.getFont());
    inner.setLayout(new GridLayout(nColumns, false));
    ec.setClient(inner);
    label = HTMLUIMessages.HTMLValidationPreferencePage_27;
    addComboBox(inner, label, HTMLCorePreferenceNames.COMMENT_INVALID_CONTENT, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_28;
    addComboBox(inner, label, HTMLCorePreferenceNames.COMMENT_UNCLOSED, SEVERITIES, errorWarningIgnoreLabel, 0);
    // End Comments
    // CDATA Sections
    ec = createStyleSection(composite, HTMLUIMessages.Expandable_label_cdata, nColumns);
    inner = new Composite(ec, SWT.NONE);
    inner.setFont(composite.getFont());
    inner.setLayout(new GridLayout(nColumns, false));
    ec.setClient(inner);
    label = HTMLUIMessages.HTMLValidationPreferencePage_29;
    addComboBox(inner, label, HTMLCorePreferenceNames.CDATA_INVALID_CONTENT, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_30;
    addComboBox(inner, label, HTMLCorePreferenceNames.CDATA_UNCLOSED, SEVERITIES, errorWarningIgnoreLabel, 0);
    // End CDATA Sections
    // Processing Instructions
    ec = createStyleSection(composite, HTMLUIMessages.Expandable_label_pi, nColumns);
    inner = new Composite(ec, SWT.NONE);
    inner.setFont(composite.getFont());
    inner.setLayout(new GridLayout(nColumns, false));
    ec.setClient(inner);
    label = HTMLUIMessages.HTMLValidationPreferencePage_31;
    addComboBox(inner, label, HTMLCorePreferenceNames.PI_INVALID_CONTENT, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_32;
    addComboBox(inner, label, HTMLCorePreferenceNames.PI_UNCLOSED, SEVERITIES, errorWarningIgnoreLabel, 0);
    // End Processing Instructions
    // Entity References
    ec = createStyleSection(composite, HTMLUIMessages.Expandable_label_entity_ref, nColumns);
    inner = new Composite(ec, SWT.NONE);
    inner.setFont(composite.getFont());
    inner.setLayout(new GridLayout(nColumns, false));
    ec.setClient(inner);
    label = HTMLUIMessages.HTMLValidationPreferencePage_33;
    addComboBox(inner, label, HTMLCorePreferenceNames.REF_INVALID_CONTENT, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_34;
    addComboBox(inner, label, HTMLCorePreferenceNames.REF_UNDEFINED, SEVERITIES, errorWarningIgnoreLabel, 0);
    // End Entity References
    // Text Content
    ec = createStyleSection(composite, HTMLUIMessages.Expandable_label_text, nColumns);
    inner = new Composite(ec, SWT.NONE);
    inner.setFont(composite.getFont());
    inner.setLayout(new GridLayout(nColumns, false));
    ec.setClient(inner);
    label = HTMLUIMessages.HTMLValidationPreferencePage_25;
    addComboBox(inner, label, HTMLCorePreferenceNames.TEXT_INVALID_CONTENT, SEVERITIES, errorWarningIgnoreLabel, 0);
    label = HTMLUIMessages.HTMLValidationPreferencePage_26;
    addComboBox(inner, label, HTMLCorePreferenceNames.TEXT_INVALID_CHAR, SEVERITIES, errorWarningIgnoreLabel, 0);
    // End Text Content
    restoreSectionExpansionStates(getDialogSettings().getSection(SETTINGS_SECTION_NAME));
    return spContent;
}
Also used : ScrolledPageContent(org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent) Composite(org.eclipse.swt.widgets.Composite) ExpandableComposite(org.eclipse.ui.forms.widgets.ExpandableComposite) ModifyListener(org.eclipse.swt.events.ModifyListener) Label(org.eclipse.swt.widgets.Label) Text(org.eclipse.swt.widgets.Text) GridLayout(org.eclipse.swt.layout.GridLayout) ModifyEvent(org.eclipse.swt.events.ModifyEvent) Button(org.eclipse.swt.widgets.Button) SelectionEvent(org.eclipse.swt.events.SelectionEvent) GridData(org.eclipse.swt.layout.GridData) ExpandableComposite(org.eclipse.ui.forms.widgets.ExpandableComposite) SelectionListener(org.eclipse.swt.events.SelectionListener)

Example 5 with ScrolledPageContent

use of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent in project webtools.sourceediting by eclipse.

the class ValidationPreferencePage method createCommonContents.

@Override
protected Composite createCommonContents(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);
    // PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IHelpContextIds.XML_PREFWEBX_FILES_HELPID);
    createLabel(body, Messages.XSLValidationPreferenceMaxErrorsLabel);
    maxErrorsText = createTextField(body);
    maxErrorsText.addModifyListener(this);
    Composite twistie;
    twistie = createTwistie(body, Messages.XSLValidationPreferenceImportsIncludesLabel, 2);
    createCombo(twistie, Messages.XSLValidationPreferenceUnresolveImportIncludeLabel, ValidationPreferences.MISSING_INCLUDE);
    createCombo(twistie, Messages.XSLValidationPreferenceCircularReferencesLabel, ValidationPreferences.CIRCULAR_REF);
    twistie = createTwistie(body, Messages.XSLValidationPreferenceNamedTemplatesLabel, 2);
    createCombo(twistie, Messages.XSLValidationPreferenceTemplateConflictsLabel, ValidationPreferences.TEMPLATE_CONFLICT);
    createCombo(twistie, Messages.XSLValidationPreferenceDuplicateParameterLabel, ValidationPreferences.DUPLICATE_PARAMETER);
    createCombo(twistie, Messages.XSLValidationPreferenceMissingParameterAttributeLabel, ValidationPreferences.NAME_ATTRIBUTE_MISSING);
    createCombo(twistie, Messages.XSLValidationPreferenceParameterEmptyAttributeLabel, ValidationPreferences.NAME_ATTRIBUTE_EMPTY);
    twistie = createTwistie(body, Messages.XSLValidationPreferenceCallTemplatesLabel, 2);
    createCombo(twistie, Messages.XSLValidationPreferenceUnresolvedTemplatesLabel, ValidationPreferences.CALL_TEMPLATES);
    createCombo(twistie, Messages.XSLValidationPreferenceMissingParamtersLabel, ValidationPreferences.MISSING_PARAM);
    createCombo(twistie, Messages.XSLValidationPreferenceParamtersWithoutValueLabel, ValidationPreferences.EMPTY_PARAM);
    twistie = createTwistie(body, Messages.XSLValidationPreferenceXPathLabel, 2);
    createCombo(twistie, Messages.XSLValidationPreferenceXPathSyntaxLabel, ValidationPreferences.XPATHS);
    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)

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