Examples of addColumnData()


Examples of org.eclipse.jface.viewers.TableLayout.addColumnData()

      this.table.setLayoutData(data);
     
      TableColumn col = new TableColumn(table, SWT.NONE);
      col.setText(Messages.ProjectPropertyPage_TablePathName);
      ColumnWeightData colData = new ColumnWeightData(10, 100, true);
      tableLayout.addColumnData(colData);

      col = new TableColumn(table, SWT.NONE);
      col.setText(Messages.ProjectPropertyPage_TableHtdocsFolder);
      colData = new ColumnWeightData(10, 100, true);
      tableLayout.addColumnData(colData);
View Full Code Here

Examples of org.eclipse.jface.viewers.TableLayout.addColumnData()

      tableLayout.addColumnData(colData);

      col = new TableColumn(table, SWT.NONE);
      col.setText(Messages.ProjectPropertyPage_TableHtdocsFolder);
      colData = new ColumnWeightData(10, 100, true);
      tableLayout.addColumnData(colData);
      table.setLayout(tableLayout);
     
      this.tableEditor = new TableEditor(table);
      this.tableEditor.horizontalAlignment = SWT.LEFT;
      this.tableEditor.grabHorizontal = true;
View Full Code Here

Examples of org.eclipse.jface.viewers.TableLayout.addColumnData()

            // // if it is restored.
            // if (columnWidth < 0) {
            // layout.addColumnData(new ColumnPixelData(markerField
            // .getDefaultColumnWidth(tree), true, true));
            // } else {
            layout.addColumnData(new ColumnPixelData(columnWidth, true));
            // }
        }
        // }

        // Remove extra columns
View Full Code Here

Examples of org.eclipse.jface.viewers.TableLayout.addColumnData()

        table.setLayout(layout);
        table.setHeaderVisible(true);
        table.setLinesVisible(true);

        TableColumn objectColumn = new TableColumn(table, SWT.NONE);
        layout.addColumnData(new ColumnWeightData(3, 100, true));
        objectColumn.setText(getString("_UI_ObjectColumn_label"));
        objectColumn.setResizable(true);

        TableColumn selfColumn = new TableColumn(table, SWT.NONE);
        layout.addColumnData(new ColumnWeightData(2, 100, true));
View Full Code Here

Examples of org.eclipse.jface.viewers.TableLayout.addColumnData()

        layout.addColumnData(new ColumnWeightData(3, 100, true));
        objectColumn.setText(getString("_UI_ObjectColumn_label"));
        objectColumn.setResizable(true);

        TableColumn selfColumn = new TableColumn(table, SWT.NONE);
        layout.addColumnData(new ColumnWeightData(2, 100, true));
        selfColumn.setText(getString("_UI_SelfColumn_label"));
        selfColumn.setResizable(true);

        tableViewer.setColumnProperties(new String [] {"a", "b"});
        tableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
View Full Code Here

Examples of org.eclipse.jface.viewers.TableLayout.addColumnData()

        table.setLayout(layout);
        table.setHeaderVisible(true);
        table.setLinesVisible(true);

        TableColumn objectColumn = new TableColumn(table, SWT.NONE);
        layout.addColumnData(new ColumnWeightData(3, 100, true));
        objectColumn.setText(getString("_UI_ObjectColumn_label"));
        objectColumn.setResizable(true);

        TableColumn selfColumn = new TableColumn(table, SWT.NONE);
        layout.addColumnData(new ColumnWeightData(2, 100, true));
View Full Code Here

Examples of org.eclipse.jface.viewers.TableLayout.addColumnData()

        layout.addColumnData(new ColumnWeightData(3, 100, true));
        objectColumn.setText(getString("_UI_ObjectColumn_label"));
        objectColumn.setResizable(true);

        TableColumn selfColumn = new TableColumn(table, SWT.NONE);
        layout.addColumnData(new ColumnWeightData(2, 100, true));
        selfColumn.setText(getString("_UI_SelfColumn_label"));
        selfColumn.setResizable(true);

        tableViewer.setColumnProperties(new String [] {"a", "b"});
        tableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
View Full Code Here

Examples of org.eclipse.jface.viewers.TableLayout.addColumnData()

    TableColumn column = new TableColumn(commandstable, SWT.CENTER
        | SWT.BORDER_SOLID, 0);
    column.setText("Alias");
    ColumnWeightData columnLayout = new ColumnWeightData(200);
    tableLayout.addColumnData(columnLayout);

    column = new TableColumn(commandstable, SWT.CENTER | SWT.BORDER_SOLID,
        1);
    column.setText("Active");
    columnLayout = new ColumnWeightData(50);
View Full Code Here

Examples of org.eclipse.jface.viewers.TableLayout.addColumnData()

    column = new TableColumn(commandstable, SWT.CENTER | SWT.BORDER_SOLID,
        1);
    column.setText("Active");
    columnLayout = new ColumnWeightData(50);
    tableLayout.addColumnData(columnLayout);

    return commandstable;

  }
View Full Code Here

Examples of org.eclipse.jface.viewers.TableLayout.addColumnData()

        table.setLinesVisible(true);// 显示表格线
        TableLayout tLayOut = new TableLayout();// 专用于表格的布局
        table.setLayout(tLayOut);
        table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

        tLayOut.addColumnData(new ColumnWeightData(740));// ID列宽

        tableViewer.setContentProvider(new TableViewerContentProvider());
        tableViewer.setLabelProvider(new ResourceTableViewerLabelProvider());
        tableViewer.setInput(resourceList);
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.