Package org.eclipse.jface.viewers

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


    tableLayout.addColumnData(new ColumnWeightData(250, 150, true));
    tableLayout.addColumnData(new ColumnWeightData(200, 150, true));
    tableLayout.addColumnData(new ColumnWeightData(200, 150, true));
    tableLayout.addColumnData(new ColumnWeightData(30, 75, true));
    tableLayout.addColumnData(new ColumnWeightData(30, 75, true));
    tableLayout.addColumnData(new ColumnWeightData(30, 50, true));
   
    // Lines visible is ugly under Windows.
    if (!Util.isWindows()) {
      searchResults.setLinesVisible(true);
    }
View Full Code Here


  public void createPartControl(Composite parent) {
    this.setPartName(Messages.getString("PlaylistOverview.Title")); //$NON-NLS-1$
           
    viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION)
    TableLayout layout = new TableLayout();
    layout.addColumnData(new ColumnWeightData(60, 10, true));
    layout.addColumnData(new ColumnWeightData(20, 10, true));
    layout.addColumnData(new ColumnWeightData(20, 10, true));
    viewer.getTable().setLayout(layout);
   
    // Lines visible is ugly under Windows.
View Full Code Here

    this.setPartName(Messages.getString("PlaylistOverview.Title")); //$NON-NLS-1$
           
    viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION)
    TableLayout layout = new TableLayout();
    layout.addColumnData(new ColumnWeightData(60, 10, true));
    layout.addColumnData(new ColumnWeightData(20, 10, true));
    layout.addColumnData(new ColumnWeightData(20, 10, true));
    viewer.getTable().setLayout(layout);
   
    // Lines visible is ugly under Windows.
    if (!Util.isWindows()) {
View Full Code Here

           
    viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION)
    TableLayout layout = new TableLayout();
    layout.addColumnData(new ColumnWeightData(60, 10, true));
    layout.addColumnData(new ColumnWeightData(20, 10, true));
    layout.addColumnData(new ColumnWeightData(20, 10, true));
    viewer.getTable().setLayout(layout);
   
    // Lines visible is ugly under Windows.
    if (!Util.isWindows()) {
      viewer.getTable().setLinesVisible(true);
View Full Code Here

        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

        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

      TableLayout tlayout = new TableLayout();
      CellEditor[] cellEditors = new CellEditor[columns.length];
      int columnWidths[] = new int[]{Display.getCurrent().getBounds().width / 14, Display.getCurrent().getBounds().width / 7, Display.getCurrent().getBounds().width / 7, Display.getCurrent().getBounds().width / 14, Display.getCurrent().getBounds().width / 7};
      for (int i = 0; i < columns.length; i++) {
        tlayout.addColumnData(new ColumnWeightData(1));
        TableColumn tc = new TableColumn(annotationsTable.getTable(), SWT.NONE);
        tc.setText(columns[i]);
        tc.setResizable(true);
        tc.setWidth(columnWidths[i]);
      }
View Full Code Here

      });
      TableLayout tlayout = new TableLayout();
      CellEditor[] cellEditors = new CellEditor[columns.length];
      int columnWidths[] = new int[]{Display.getCurrent().getBounds().width / 14, Display.getCurrent().getBounds().width / 14, Display.getCurrent().getBounds().width / 5};
      for (int i = 0; i < columns.length; i++) {
        tlayout.addColumnData(new ColumnWeightData(1));
        TableColumn tc = new TableColumn(fPartitionTable.getTable(), SWT.NONE);
        tc.setText(columns[i]);
        tc.setResizable(true);
        tc.setWidth(columnWidths[i]);
      }
View Full Code Here

        public void removeListener(ILabelProviderListener listener) {
        }
      });

      TableLayout tlayout = new TableLayout();
      tlayout.addColumnData(new ColumnWeightData(7, true));
      tlayout.addColumnData(new ColumnWeightData(28, true));
      tlayout.addColumnData(new ColumnWeightData(50, true));
      structuredSelectionTable.getTable().setLayout(tlayout);

      TableColumn tc = new TableColumn(structuredSelectionTable.getTable(), SWT.NONE);
View Full Code Here

        }
      });

      TableLayout tlayout = new TableLayout();
      tlayout.addColumnData(new ColumnWeightData(7, true));
      tlayout.addColumnData(new ColumnWeightData(28, true));
      tlayout.addColumnData(new ColumnWeightData(50, true));
      structuredSelectionTable.getTable().setLayout(tlayout);

      TableColumn tc = new TableColumn(structuredSelectionTable.getTable(), SWT.NONE);
      tc.setText("Item"); //$NON-NLS-1$
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.