Examples of pack()


Examples of org.eclipse.swt.widgets.Spinner.pack()

    spinner.setMinimum( 0 );
    spinner.setMaximum( 1000 );
    spinner.setSelection( 500 );
    spinner.setIncrement( 1 );
    spinner.setPageIncrement( 100 );
    spinner.pack();
    shell.pack();
    shell.open();
  }

  private void createTabFolder() {
View Full Code Here

Examples of org.eclipse.swt.widgets.TabFolder.pack()

    TabItem item3 = new TabItem(tabFolder, SWT.NONE);
    PreferencesTab userDefTab = new UserDefinedTab(mediator);
    item3.setText(userDefTab.getTabName());
    item3.setControl(userDefTab.getTabControl(tabFolder));   
   
    tabFolder.pack();
   
    parent.pack();
    return tabFolder;

  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.pack()

    default:
      table.setSelection(gotoDirection ? 1 : table.getItemCount() - 1);
    }

    tc.pack();
    table.pack();
    dialog.pack();

    Rectangle tableBounds = table.getBounds();
    tableBounds.height = Math.min(tableBounds.height, table.getItemHeight()
        * MAX_ITEMS);
 
View Full Code Here

Examples of org.eclipse.swt.widgets.TableColumn.pack()

        tableItem1.setText(new String[] {id, javafile.contains("\"" + id + "\"") ? "yes" : "no"});
      }
    }
   
    col1.pack();
    col2.pack();
   
    reportEditorIndex = addPage(composite);
    setPageText(reportEditorIndex, "stats");
  }
 
View Full Code Here

Examples of org.eclipse.swt.widgets.Text.pack()

    greedy4d1l1Text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 3, 1));
    greedy4d1l1Text.setData("l1");
    greedy4d1l1Text.setText("1");
    greedy4d1l1Text.setToolTipText("Dunno yet :)");
    greedy4d1l1Text.addModifyListener(textListener);
    greedy4d1l1Text.pack();
    greedy4d1l1Text.setEnabled(false);
   
    Label greedy4d1l2Label = new Label(optionsGroup, SWT.NONE);
    greedy4d1l2Label.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, false, 1, 1));
    greedy4d1l2Label.setText("l2 = ");
View Full Code Here

Examples of org.eclipse.swt.widgets.ToolBar.pack()

    new ToolItem(tb,SWT.SEPARATOR);
    refreshItem = new ToolItem(tb,SWT.NONE);
    refreshItem.setText("Refresh");
    refreshItem.setImage(Activator.getImageDescriptor("icons/reload_32.png").createImage());
    refreshItem.addSelectionListener(this);
    tb.pack();
   
    sc = new StuffComposite(parent,SWT.NONE);
    sc.setLayoutData(new GridData(GridData.FILL_BOTH));
   
    sc.getTv().addSelectionChangedListener(this);
View Full Code Here

Examples of org.eclipse.swt.widgets.TreeColumn.pack()

        viewer.setContentProvider(new SummaryDataProvider());
        viewer.setLabelProvider(new SummaryLabelProvider());
        viewer.setInput(data);
        viewer.setColumnProperties(new String[]{"TITLE",VALUE})//$NON-NLS-1$
       
        infoColumn.pack();
        setCellEditor(viewer);
       
        return tree;
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.ScrolledForm.pack()

      createDefinesSection(toolkit, body);
    }

    updateViewsFromModel();

    form.pack();
    // form.reflow(true);
  }

  private TableViewer createModelsSection(String title, String description, FormToolkit toolkit, Composite parent, IStructuredContentProvider contentProvider, ITableLabelProvider labelProvider, SelectionListener addListener, SelectionListener removeListener) {
    Composite modelsSection = createSection(toolkit, parent, title, description, 1, 2);
View Full Code Here

Examples of org.emftrace.ui.editors.builders.parts.ListPartWithButtons.pack()

                if (notification.getEventType() == Notification.REMOVE) {

                  removePart((Constraint) notification
                      .getOldValue());
                  constraintsListPart.pack();

                } else if (notification.getEventType() == Notification.ADD) {
                  addPart((Constraint) notification
                      .getNewValue(), composite,
                      constraintPartMap);
View Full Code Here

Examples of org.fest.swing.applet.AppletViewer.pack()

      final @Nonnull Applet applet, final @Nonnull Map<String, String> parameters) {
    final AppletViewer viewer = newViewer(applet, parameters);
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        viewer.pack();
        viewer.setVisible(true);
      }
    });
    pause(new Condition("new AppletViewer to be showing") {
      @Override
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.