Package org.eclipse.swt.widgets

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


      break;
    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()
View Full Code Here

        // Not much to do, but this shouldn't really happen.
      }
    }

    Dialog.applyDialogFont(parent);
    columnKeySequence.pack();
    if (previousWidth != NO_REMEMBERED_WIDTH) {
      columnKeySequence.setWidth(previousWidth);
    }
    columnCommandName.pack();
View Full Code Here

    TableColumn tableColumnContext = new TableColumn(
        tableBindingsForCommand, SWT.NULL, 1);
    tableColumnContext.setResizable(true);
    tableColumnContext.setText(Util.translateString(RESOURCE_BUNDLE,
        "tableColumnContext")); //$NON-NLS-1$
    tableColumnContext.pack();
    tableColumnContext.setWidth(200);
    final TableColumn tableColumnKeySequence = new TableColumn(
        tableBindingsForCommand, SWT.NULL, 2);
    tableColumnKeySequence.setResizable(true);
    tableColumnKeySequence.setText(Util.translateString(RESOURCE_BUNDLE,
View Full Code Here

    final TableColumn tableColumnKeySequence = new TableColumn(
        tableBindingsForCommand, SWT.NULL, 2);
    tableColumnKeySequence.setResizable(true);
    tableColumnKeySequence.setText(Util.translateString(RESOURCE_BUNDLE,
        "tableColumnKeySequence")); //$NON-NLS-1$
    tableColumnKeySequence.pack();
    tableColumnKeySequence.setWidth(300);

    tableBindingsForCommand.addMouseListener(new MouseAdapter() {

      public void mouseDoubleClick(MouseEvent mouseEvent) {
View Full Code Here

    final TableColumn tableColumnCommand = new TableColumn(
        tableBindingsForTriggerSequence, SWT.NULL, 2);
    tableColumnCommand.setResizable(true);
    tableColumnCommand.setText(Util.translateString(RESOURCE_BUNDLE,
        "tableColumnCommand")); //$NON-NLS-1$
    tableColumnCommand.pack();
    tableColumnCommand.setWidth(300);

    tableBindingsForTriggerSequence.addMouseListener(new MouseAdapter() {

      public void mouseDoubleClick(MouseEvent mouseEvent) {
View Full Code Here

            final TableColumn column = viewerColumn.getColumn();

            String attrName = _selectedAttributes.get(i);
            column.setMoveable(true);
            column.setText(attrName);
            column.pack();
            if(DEFAULT_COLUMN_WIDTHS.containsKey(attrName))
            {
                //retrieve the desired default width
                column.setWidth(DEFAULT_COLUMN_WIDTHS.get(attrName));
            }
View Full Code Here

    for (int i = 0; i < columnCount - 1; i++) {
      int minWidth = (int) settings.getColumnMin(i);
      int maxWidth = (int) (settings.getColumnMax(i) * tableWidth);
      TableColumn column = table.getColumn(i);
      if (mode2 == MODE_AUTO)
        column.pack(); // automatically resize the column
      int width = column.getWidth();
            // check the values
      if (width < minWidth) {
        // ensure the table isn't incredibly small
        if (!(columnCount * minWidth > tableWidth)) {
View Full Code Here

        String[] titles = delegate.getColumns();
        for (int i=0; i < titles.length; i++) {
            TableColumn column = new TableColumn(table, SWT.NONE);
            column.setText(titles[i]);
           
            column.pack();
            column.setWidth(100);
        }
       
        return table;
    }
View Full Code Here

    placeholderTable.setLinesVisible(true);
    placeholderTable.setHeaderVisible(true);
   
    TableColumn placeholderLabelColumn =
      new TableColumn(placeholderTable, SWT.NONE);
    placeholderLabelColumn.pack();
    placeholderLabelColumn.setWidth(COLUMN_WIDTH);
    placeholderLabelColumn.setText(PLACEHOLDER_LABEL_COLUMN_LABEL);
   
    TableColumn placeholderColumn =
      new TableColumn(placeholderTable, SWT.NONE);
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.