Example usage for org.eclipse.jface.viewers TableViewer clear

List of usage examples for org.eclipse.jface.viewers TableViewer clear

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers TableViewer clear.

Prototype

public void clear(int index) 

Source Link

Document

Clear the table item at the specified index

Usage

From source file:org.eclipse.cdt.examples.dsf.dataviewer.AsyncDataViewer.java

License:Open Source License

@ThreadSafe
public void valuesChanged(final Set<Integer> indexes) {
    // Mark the changed items in table viewer as dirty, this will 
    // trigger update requests for these indexes if they are 
    // visible in the viewer.
    final TableViewer tableViewer = fViewer;
    fDisplayExecutor.execute(new Runnable() {
        public void run() {
            if (!fViewer.getTable().isDisposed()) {
                for (Integer index : indexes) {
                    tableViewer.clear(index);
                }/*from   w  w w .  j av a  2s .c  om*/
            }
        }
    });
}