org.eclipse.corona.ui.tools
Class TableViewerRefresher

java.lang.Object
  extended by org.eclipse.corona.ui.tools.TableViewerRefresher
All Implemented Interfaces:
java.lang.Runnable

public class TableViewerRefresher
extends java.lang.Object
implements java.lang.Runnable

The class refreshes an instance of TableViewer no matter which thread wants to do it. Normally only display thread can do it.


Constructor Summary
TableViewerRefresher(org.eclipse.jface.viewers.TableViewer tableViewer)
           
 
Method Summary
 void refreshTable(boolean withLabels)
          Methods invoked to notify that table needs to be refreshed.
 void run()
          Does the refresh; it is called form Display.syncExec().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableViewerRefresher

public TableViewerRefresher(org.eclipse.jface.viewers.TableViewer tableViewer)
Method Detail

refreshTable

public void refreshTable(boolean withLabels)
Methods invoked to notify that table needs to be refreshed. The refresh itself will be invoked sychronously with the GUI.

Parameters:
withLabels - If true labels in existing rows will be also refreshed; if false they will be left as they are.

run

public void run()
Does the refresh; it is called form Display.syncExec().

Specified by:
run in interface java.lang.Runnable

Copyright 2006 IBM Corporation and others.
All Rights Reserved.