Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.ColumnWeightData


                    final int tableWidth = comp.getClientArea().width;
                    column.setWidth(tableWidth);
                }
            }
        };
        tableLayout.addColumnData(new ColumnWeightData(1, false));
        table.setLayout(tableLayout);

        // Set column properties - note that this is not viewable text, and
        // so does not need internationalising. It is simply used as a column
        // name for internal calls
View Full Code Here


        table.setLayout(layout);

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

        layout.addColumnData(new ColumnWeightData(1, 20, true));
        new TableColumn(table, SWT.LEFT);

        layout.addColumnData(new ColumnWeightData(5, 40, true));
        TableColumn tc1 = new TableColumn(table, SWT.LEFT);
        tc1.setText(COLUMN_NAMES[0]);

        layout.addColumnData(new ColumnWeightData(10, true));
        TableColumn tc2 = new TableColumn(table, SWT.LEFT);
        tc2.setText(COLUMN_NAMES[1]);

        layout.addColumnData(new ColumnWeightData(10, true));
        TableColumn tc3 = new TableColumn(table, SWT.LEFT);
        tc3.setText(COLUMN_NAMES[2]);

        return new TableViewer(table);
View Full Code Here

    // Create a table
      viewer = new Table(composite, SWT.FULL_SELECTION | SWT.BORDER);
      viewer.setLayoutData(new GridData(GridData.FILL_BOTH));
     
      TableLayout layout = new TableLayout();
    layout.addColumnData(new ColumnWeightData(80, 10, true));
    layout.addColumnData(new ColumnWeightData(20, 10, true));
    viewer.setLayout(layout);
     
      _fileCol = new TableColumn(viewer, SWT.LEFT);
      _fileCol.setText(Messages.getString("TagUpdateProblemDialog.ColHeaderFile")); //$NON-NLS-1$
      _errorCol = new TableColumn(viewer, SWT.LEFT);
View Full Code Here

      GridData radioListTableGD = new GridData(SWT.FILL, SWT.FILL, true, true);
      radioListTableGD.horizontalSpan = 2;
      radioListTable.setLayoutData(radioListTableGD);
     
      TableLayout layout = new TableLayout();
      layout.addColumnData(new ColumnWeightData(50, 10, true));
      layout.addColumnData(new ColumnWeightData(50, 10, true));
      radioListTable.setLayout(layout);
     
      TableColumn columnRadioName = new TableColumn(radioListTable, SWT.NONE);
      columnRadioName.setText(Messages.getString("RadioPropertiesDialog.ColumnRadioName")); //$NON-NLS-1$
     
View Full Code Here

   
    if (ApplicationUtils.doesEngineSupportPodcasts()) {
     
      viewer = new TableViewer(_parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION)
      TableLayout layout = new TableLayout();
      layout.addColumnData(new ColumnWeightData(15, 10, true));
      layout.addColumnData(new ColumnWeightData(25, 10, true));
      layout.addColumnData(new ColumnWeightData(40, 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

   
    propertiesTable = new Table(parent, SWT.BORDER);
    propertiesTable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
   
    TableLayout layout = new TableLayout();
    layout.addColumnData(new ColumnWeightData(25, 10, true));
    layout.addColumnData(new ColumnWeightData(75, 10, true));
    propertiesTable.setLayout(layout);
   
    propertiesTable.setHeaderVisible(true);
   
    if (!Util.isWindows()) {
View Full Code Here

        this.setTitleImage(_titleImage);
      }

      viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION);
      TableLayout layout = new TableLayout();
      layout.addColumnData(new ColumnWeightData(5, 20, true));
      layout.addColumnData(new ColumnWeightData(10, 25, true));
      layout.addColumnData(new ColumnWeightData(250, 150, true));
      layout.addColumnData(new ColumnWeightData(200, 150, true));
      layout.addColumnData(new ColumnWeightData(200, 150, true));

      viewer.getTable().setLayout(layout);

      // Lines visible is ugly under Windows.
      if (!Util.isWindows()) {
View Full Code Here

   
    _thePlaylist = Controller.getInstance().getPlaylistController().getPlaylistByName(_id);
   
    this.viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION);
    TableLayout layout = new TableLayout();
    layout.addColumnData(new ColumnWeightData(5, 20, true));
    layout.addColumnData(new ColumnWeightData(10, 35, true));
    layout.addColumnData(new ColumnWeightData(250, 150, true));
    layout.addColumnData(new ColumnWeightData(200, 150, true));
    layout.addColumnData(new ColumnWeightData(200, 150, true));
    layout.addColumnData(new ColumnWeightData(30, 75, true));
    layout.addColumnData(new ColumnWeightData(30, 75, true));
    layout.addColumnData(new ColumnWeightData(30, 50, true));
   
    viewer.getTable().setLayout(layout);

    // Lines visible is ugly under Windows.
    if (!Util.isWindows()) {
View Full Code Here

    searchResults = toolkit.createTable(searchResultClient, SWT.CHECK | SWT.V_SCROLL | SWT.H_SCROLL | SWT.FULL_SELECTION);
    gd = new GridData(SWT.FILL, SWT.FILL, true, true);
    searchResults.setLayoutData(gd);
   
    TableLayout tableLayout = new TableLayout();
    tableLayout.addColumnData(new ColumnWeightData(10, 35, true));
    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.
    if (!Util.isWindows()) {
      viewer.getTable().setLinesVisible(true);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.ColumnWeightData

Copyright © 2018 www.massapicom. 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.