Java Code Examples for org.eclipse.swt.widgets.Tree.getSortColumn()

The following are Jave code examples for showing how to use getSortColumn() of the org.eclipse.swt.widgets.Tree class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: depan   File: NodeStatsTableControl.java   Source Code and License Vote up 5 votes
private int getSortDirection(TreeColumn column) {
  Tree tree = propViewer.getTree();
  if (column != tree.getSortColumn()) {
    return SWT.DOWN;
  }
  // If it is unsorted (SWT.NONE), assume down sort
  return (SWT.DOWN == tree.getSortDirection())
      ? SWT.UP : SWT.DOWN;
}
 
Example 2
Project: depan   File: NodeDisplayTableControl.java   Source Code and License Vote up 5 votes
private int getSortDirection(TreeColumn column) {
  Tree tree = propViewer.getTree();
  if (column != tree.getSortColumn()) {
    return SWT.DOWN;
  }
  // If it is unsorted (SWT.NONE), assume down sort
  return (SWT.DOWN == tree.getSortDirection())
      ? SWT.UP : SWT.DOWN;
}