Package org.eclipse.ui.forms.widgets

Examples of org.eclipse.ui.forms.widgets.FormToolkit.adapt()


        Composite body = form.getBody();

        // Create controls
        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
        sashForm.setSashWidth(6);
        toolkit.adapt(sashForm, false, false);
       
        Composite leftPanel = toolkit.createComposite(sashForm);
        createLeftPanel(managedForm, leftPanel);
       
        Composite rightPanel = toolkit.createComposite(sashForm);
View Full Code Here


    GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    form.getBody().setLayout(layout);
    SashForm sashForm = new SashForm(form.getBody(), SWT.NULL);
    toolkit.adapt(sashForm, false, false);
    sashForm.setMenu(form.getBody().getMenu());
    sashForm.setLayoutData(new GridData(GridData.FILL_BOTH));

    Section section = toolkit.createSection(sashForm, Section.DESCRIPTION);
    section.setText("Create Api");
View Full Code Here

    GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    form.getBody().setLayout(layout);
    SashForm sashForm = new SashForm(form.getBody(), SWT.NULL);
    toolkit.adapt(sashForm, false, false);
    sashForm.setMenu(form.getBody().getMenu());
    sashForm.setLayoutData(new GridData(GridData.FILL_BOTH));

    Section section = toolkit.createSection(sashForm, Section.DESCRIPTION);
    section.setText("Delete Api");
View Full Code Here

    final ScrolledForm form = managedForm.getForm();
    FormToolkit toolkit = managedForm.getToolkit();
    applyLayout(parent);
    sashForm = new MDSashForm(parent, SWT.NULL);
    sashForm.setData("form", managedForm); //$NON-NLS-1$
    toolkit.adapt(sashForm, false, false);
    sashForm.setMenu(parent.getMenu());
    applyLayoutData(sashForm);
    createMasterPart(managedForm, sashForm);
    createDetailsPart(managedForm, sashForm);
    hookResizeListener();
View Full Code Here

   *            widget hierarchy
   */
  public static void adapt(Control element) {
    FormToolkit tk = getToolkit(element);
    if (tk != null && element.getData(FORM_SIGNATURE_KEY) != Boolean.TRUE) {
      tk.adapt(element, true, true);
    }
  }

  /**
   * depth-first adaptation of form toolkit colors
View Full Code Here

    layout.marginWidth = 0;
    layout.marginHeight = 0;
    form.getBody().setLayout(layout);
    sashForm = new MDSashForm(form.getBody(), SWT.NULL);
    sashForm.setData("form", managedForm); //$NON-NLS-1$
    toolkit.adapt(sashForm, false, false);
    sashForm.setMenu(form.getBody().getMenu());
    sashForm.setLayoutData(new GridData(GridData.FILL_BOTH));
    createMasterPart(managedForm, sashForm);
    createDetailsPart(managedForm, sashForm);
    hookResizeListener();
View Full Code Here

           
            final FormToolkit toolkit = managedForm.getToolkit();
           
            FormColors colors = toolkit.getColors();
            this.setMenu(parent.getMenu());
            toolkit.adapt(this, true, true);
            if (this.toggle != null) {
                this.toggle.setHoverDecorationColor(colors
                        .getColor(IFormColors.TB_TOGGLE_HOVER));
                this.toggle.setDecorationColor(colors
                        .getColor(IFormColors.TB_TOGGLE));
View Full Code Here

        toolkit.paintBordersFor(composite);

        text = new Text(composite, SWT.WRAP | SWT.BORDER);
        text.setMessage("test");
        text.setFont(SWTResourceManager.getFont("Segoe UI", 16, SWT.NONE));
        toolkit.adapt(text, true, true);
        toolkit.adapt(sashForm, true, true);

        final Composite composite_1 = toolkit.createComposite(sashForm, SWT.NONE);
        final ColumnLayout columnLayout = new ColumnLayout();
        columnLayout.maxNumColumns = 1;
View Full Code Here

        text = new Text(composite, SWT.WRAP | SWT.BORDER);
        text.setMessage("test");
        text.setFont(SWTResourceManager.getFont("Segoe UI", 16, SWT.NONE));
        toolkit.adapt(text, true, true);
        toolkit.adapt(sashForm, true, true);

        final Composite composite_1 = toolkit.createComposite(sashForm, SWT.NONE);
        final ColumnLayout columnLayout = new ColumnLayout();
        columnLayout.maxNumColumns = 1;
        composite_1.setLayout(columnLayout);
View Full Code Here

        toolkit.paintBordersFor(composite_2);
        categorySection.setClient(composite_2);

        final CheckboxTableViewer checkboxTableViewer_1 = CheckboxTableViewer.newCheckList(composite_2, SWT.NONE);
        table_1 = checkboxTableViewer_1.getTable();
        toolkit.adapt(table_1, true, true);
        table_1.setBounds(0, 0, 120, 30);

        final TableColumn newColumnTableColumn = new TableColumn(table_1, SWT.NONE);
        newColumnTableColumn.setWidth(100);
        newColumnTableColumn.setText("New column");
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.