Search in sources :

Example 6 with TabbedPropertySheetWidgetFactory

use of org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory in project webtools.sourceediting by eclipse.

the class XSDSimpleTypeAdvancedSection method createContents.

protected void createContents(Composite parent) {
    TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
    composite = factory.createFlatFormComposite(parent);
    GridData data = new GridData();
    GridLayout gridLayout = new GridLayout();
    gridLayout.marginTop = 0;
    gridLayout.marginBottom = 0;
    gridLayout.numColumns = 3;
    composite.setLayout(gridLayout);
    // ------------------------------------------------------------------
    // FinalLabel
    // ------------------------------------------------------------------
    data = new GridData();
    data = new GridData();
    data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING;
    data.grabExcessHorizontalSpace = false;
    CLabel finalLabel = getWidgetFactory().createCLabel(composite, Messages._UI_LABEL_FINAL);
    finalLabel.setLayoutData(data);
    // ------------------------------------------------------------------
    // FinalCombo
    // ------------------------------------------------------------------
    data = new GridData();
    data.grabExcessHorizontalSpace = true;
    data.horizontalAlignment = GridData.FILL;
    finalCombo = getWidgetFactory().createCCombo(composite);
    finalCombo.setLayoutData(data);
    finalCombo.setEditable(false);
    finalCombo.setItems(finalValues);
    finalCombo.addSelectionListener(this);
}
Also used : CLabel(org.eclipse.swt.custom.CLabel) GridLayout(org.eclipse.swt.layout.GridLayout) GridData(org.eclipse.swt.layout.GridData) TabbedPropertySheetWidgetFactory(org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory)

Aggregations

TabbedPropertySheetWidgetFactory (org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory)6 GridData (org.eclipse.swt.layout.GridData)5 GridLayout (org.eclipse.swt.layout.GridLayout)5 CLabel (org.eclipse.swt.custom.CLabel)4 ArrayList (java.util.ArrayList)1 Iterator (java.util.Iterator)1 List (java.util.List)1 FontData (org.eclipse.swt.graphics.FontData)1 FormAttachment (org.eclipse.swt.layout.FormAttachment)1 FormData (org.eclipse.swt.layout.FormData)1 Composite (org.eclipse.swt.widgets.Composite)1 Group (org.eclipse.swt.widgets.Group)1 Table (org.eclipse.swt.widgets.Table)1 XSDFeature (org.eclipse.xsd.XSDFeature)1 NodeList (org.w3c.dom.NodeList)1