Examples of TableWrapData


Examples of org.eclipse.ui.forms.widgets.TableWrapData

                .getHeight(), SWT.BOLD);

        Section section = toolkit.createSection(parent, Section.TITLE_BAR);
        section.marginWidth = 10;
        section.setText(Messages.AttributeDetails_title);
        section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

        Composite container = toolkit.createComposite(section);
        section.setClient(container);
        GridLayout glayout = new GridLayout();
        glayout.marginWidth = glayout.marginHeight = 0;
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

        section = toolkit.createSection(parent, Section.TITLE_BAR | SWT.WRAP
                | Section.DESCRIPTION);
        section.marginWidth = 10;
        section.setText(Messages.OperationDetails_title);
        section.setDescription(""); //$NON-NLS-1$
        section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

        container = toolkit.createComposite(section);
        section.setClient(container);
        GridLayout glayout = new GridLayout();
        glayout.marginWidth = glayout.marginHeight = 0;
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

    Composite body = managedForm.getForm().getBody();
    body.setLayout(FormLayoutFactory.createFormTableWrapLayout(true, 2));

    Composite left = toolkit.createComposite(body);
    left.setLayout(FormLayoutFactory.createFormPaneTableWrapLayout(false, 1));
    left.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

    Section section = Parts.createStaticSection(toolkit, left, "General Attributes");
    Composite container = Parts.createStaticSectionClient(toolkit, section);

    // Generates a NullPrt
    IActionBars actionBars = /*getPage().getEditor().*/getEditorSite().getActionBars();
    createNameEntry(container, actionBars);
    createCmtEntry(container, null);
    createIconIdxEntry(container, null);
    createLabelIdxEntry(container, null);

    section.setClient(container);

    Composite right = toolkit.createComposite(body);
    right.setLayout(FormLayoutFactory.createFormPaneTableWrapLayout(false, 1));
    right.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

    Section sectionR = Parts.createStaticSection(toolkit, right, "Informations");
    Composite cnt2 = Parts.createStaticSectionClient(toolkit, sectionR);

    _fMainTable = new FormEntry(cnt2, toolkit, "Main Table", SWT.SINGLE);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

    Composite body = managedForm.getForm().getBody();
    body.setLayout(FormLayoutFactory.createFormTableWrapLayout(true, 1));

    Composite left = toolkit.createComposite(body);
    left.setLayout(FormLayoutFactory.createFormPaneTableWrapLayout(false, 1));
    left.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

    Section section = Parts.createStaticSection(toolkit, left, sectionTitle);

    Composite container = toolkit.createComposite(section, SWT.NONE);
    container.setLayout(FormLayoutFactory.createSectionClientTableWrapLayout(false, 2));
    TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
    container.setLayoutData(data);

    tabv = new AttributTableViewer(container);

    tabv.addModifyListener(new ModifyListener()
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

    Composite body = form.getForm().getBody();
    body.setLayout(FormLayoutFactory.createFormTableWrapLayout(true, 2));

    Composite left = toolkit.createComposite(body);
    left.setLayout(FormLayoutFactory.createFormPaneTableWrapLayout(false, 1));
    left.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

    _lsMainLayout = new LayoutSection(this, left, "General Layout Data");

    Composite right = toolkit.createComposite(body);
    right.setLayout(FormLayoutFactory.createFormPaneTableWrapLayout(false, 1));
    right.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

    _lsCardLayout = new LayoutSection(this, right, "Card Layout Data");

    int index = addPage(form);
    setPageText(index, "Layout");
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

    {
    Section section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR);
    section.clientVerticalSpacing = FormLayoutFactory.SECTION_HEADER_VERTICAL_SPACING;
    section.setText(text);
    section.setLayout(FormLayoutFactory.createClearTableWrapLayout(false, 1));
    TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
    section.setLayoutData(data);
    return section;
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

  public final static Composite createStaticSectionClient(FormToolkit toolkit, Composite parent)
    {
    Composite container = toolkit.createComposite(parent, SWT.NONE);
    container.setLayout(FormLayoutFactory.createSectionClientTableWrapLayout(false, 2));
    TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
    container.setLayoutData(data);
    return container;
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

    _tLayoutAttr.addAttribut("Height", AttrType.T_Integer, "Height", 80);

    _tLayoutAttr.createMMI();

    fde.toolkit.adapt(_tLayoutAttr.getTable());
    TableWrapData td = new TableWrapData(TableWrapData.FILL);
    td.colspan = 2;
    td.heightHint = 160;
    td.grabVertical = true;
    _tLayoutAttr.setLayoutData(td);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

    _edPart.toolkit.adapt(this);

    // Essai du 24-Juillet-2011 : OK
    setLayout(FormLayoutFactory.createClearGridLayout(false, 2));
    setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

    if (iai >= 0)
      {
      _attrImgLayout = _layout.getLstLayout().get(iai);
      Point s = _attrImgLayout.getSize();
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

        int span = ((TableWrapLayout) layout).numColumns;
        if (tcolspan > 0)
          tspan = tcolspan;
        else
          tspan = fBrowse != null ? span - 2 : span - 1;
        TableWrapData td;
        if (fLabel != null)
          {
          td = new TableWrapData();
          td.valign = TableWrapData.MIDDLE;
          td.indent = indent;
          fLabel.setLayoutData(td);
          }
        td = new TableWrapData(TableWrapData.FILL);
        td.colspan = tspan;
        if (fLabel != null)
          {
          td.indent = FormLayoutFactory.CONTROL_HORIZONTAL_INDENT;
          }
        td.grabHorizontal = (tspan == 1);
        td.valign = TableWrapData.MIDDLE;
        fText.setLayoutData(td);
        if (fBrowse != null)
          {
          td = new TableWrapData(TableWrapData.FILL);
          td.valign = TableWrapData.MIDDLE;
          fBrowse.setLayoutData(td);
          }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.