Package org.eclipse.swt.widgets

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


    placeholderLabelColumn.setWidth(COLUMN_WIDTH);
    placeholderLabelColumn.setText(PLACEHOLDER_LABEL_COLUMN_LABEL);
   
    TableColumn placeholderColumn =
      new TableColumn(placeholderTable, SWT.NONE);
    placeholderColumn.pack();
    placeholderColumn.setWidth(COLUMN_WIDTH);
    placeholderColumn.setText(PLACEHOLDER_COLUMN_LABEL);
   
    return placeholderTable;
  }
View Full Code Here


        bndr.getBinding("jdbcDriverClassPath")) {

      protected void updateSize(TableViewer newCheckList) {
        // TODO Auto-generated method stub
        TableColumn tableColumn = (TableColumn) columnWidget;
        tableColumn.pack();
        // int width = tableColumn.getWidth();
        // int width2 = newCheckList.getTable().getBounds().width;
        // if (width < width2) {
        // ((TableColumn) columnWidget).setWidth(width2 - 5);
        // }
View Full Code Here

    final ListEnumeratedValueSelector<String> l = new ListEnumeratedValueSelector<String>(
        nsListBinding) {

      protected void updateSize(TableViewer newCheckList) {
        TableColumn tableColumn = (TableColumn) columnWidget;
        tableColumn.pack();
      }
    };

    l.addSelectionChangedListener(new ISelectionChangedListener() {
View Full Code Here

            IConnection connection = ( IConnection ) getElement();
            if ( connection != null )
            {
                Object[] atds = connection.getSchema().getAttributeTypeDescriptions();
                viewer.setInput( atds );
                column.pack();
            }
        }
        else if ( getElement() instanceof IEntry )
        {
            IEntry entry = ( IEntry ) getElement();
View Full Code Here

            IEntry entry = ( IEntry ) getElement();
            if ( entry != null )
            {
                Object[] atds = entry.getSubschema().getAllAttributeNames();
                viewer.setInput( atds );
                column.pack();
            }
        }

        // setControl(composite);
        return parent;
View Full Code Here

            IConnection connection = ( IConnection ) getElement();
            if ( connection != null )
            {
                Object[] ocds = connection.getSchema().getObjectClassDescriptions();
                viewer.setInput( ocds );
                column.pack();
            }
        }
        else if ( getElement() instanceof IEntry )
        {
            IEntry entry = ( IEntry ) getElement();
View Full Code Here

            IEntry entry = ( IEntry ) getElement();
            if ( entry != null )
            {
                Object[] ocds = entry.getSubschema().getObjectClassNames();
                viewer.setInput( ocds );
                column.pack();
            }
        }

        return parent;
    }
View Full Code Here

            for (int i = 0; i < columnHeaders.length; i++) {
                layout.addColumnData(columnLayouts[i]);
                TableColumn tc = new TableColumn(getTable(), SWT.BORDER, i);
                tc.setResizable(columnLayouts[i].resizable);
                tc.setText(columnHeaders[i]);
                tc.pack();
                final int j = i;
                tc.addSelectionListener(new SelectionAdapter() {
                    public void widgetSelected(SelectionEvent e) {
                        ViewerSorter oldSorter = viewer.getSorter();
                        if (oldSorter instanceof ColumnBasedSorter) {
View Full Code Here

            IBrowserConnection connection = ( IBrowserConnection ) getElement();
            if ( connection != null )
            {
                Collection<AttributeTypeDescription> atds = connection.getSchema().getAttributeTypeDescriptions();
                viewer.setInput( atds );
                column.pack();
            }
        }
        else if ( getElement() instanceof IEntry )
        {
            IEntry entry = ( IEntry ) getElement();
View Full Code Here

            IEntry entry = ( IEntry ) getElement();
            if ( entry != null )
            {
                Object[] atds = entry.getSubschema().getAllAttributeNames();
                viewer.setInput( atds );
                column.pack();
            }
        }

        // setControl(composite);
        return parent;
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.