Package org.objectstyle.wolips.baseforuiplugins.utils

Examples of org.objectstyle.wolips.baseforuiplugins.utils.WOTableViewer


  public static TableViewer createTableViewer(Composite parent, String messagePrefix, String[] columns, IStructuredContentProvider contentProvider, ITableLabelProvider labelProvider, ViewerSorter sorter) {
    return TableUtils.createTableViewer(parent, SWT.FULL_SELECTION, messagePrefix, columns, contentProvider, labelProvider, sorter);
  }

  public static WOTableViewer createTableViewer(Composite parent, int style, String messagePrefix, String[] columns, IStructuredContentProvider contentProvider, ITableLabelProvider labelProvider, ViewerSorter sorter) {
    WOTableViewer tableViewer = new WOTableViewer(parent, style);
    tableViewer.setColumnProperties(columns);
    if (contentProvider != null) {
      tableViewer.setContentProvider(contentProvider);
    }
    if (labelProvider != null) {
      tableViewer.setLabelProvider(labelProvider);
    }
    if (sorter != null) {
      tableViewer.setSorter(sorter);
    }
    Table table = tableViewer.getTable();
    table.setHeaderVisible(true);
    table.setLinesVisible(true);
    TableUtils.createTableColumns(tableViewer, messagePrefix, columns, (sorter instanceof TablePropertyViewerSorter));
    return tableViewer;
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.baseforuiplugins.utils.WOTableViewer

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.