| |
|
| java.lang.Object org.eclipse.ui.tests.navigator.DisplayWaiter
DisplayWaiter | final class DisplayWaiter (Code) | | Implements the thread that will wait for the timeout and wake up the display
so it does not wait forever. The thread may be restarted after it was stopped
or timed out.
since: 3.1 |
Inner Class :final public class Timeout | |
Constructor Summary | |
public | DisplayWaiter(Display display) Creates a new instance on the given display and timeout. | public | DisplayWaiter(Display display, boolean keepRunning) Creates a new instance on the given display and timeout. |
Method Summary | |
public void | hold() Puts the reaper thread on hold but does not stop it. | public Timeout | restart(long delay) Starts the thread if it is not currently running; resets the timeout if
it is. | public Timeout | start(long delay) Starts the timeout thread if it is not currently running. | public void | stop() Stops the thread if it is running. |
DisplayWaiter | public DisplayWaiter(Display display)(Code) | | Creates a new instance on the given display and timeout.
Parameters: display - the display to run the event loop of |
DisplayWaiter | public DisplayWaiter(Display display, boolean keepRunning)(Code) | | Creates a new instance on the given display and timeout.
Parameters: display - the display to run the event loop of Parameters: keepRunning - true if the thread should be keptrunning after timing out |
restart | public Timeout restart(long delay)(Code) | | Starts the thread if it is not currently running; resets the timeout if
it is.
Parameters: delay - the delay from now in milliseconds the timeout state which can be queried for its timed out status |
start | public Timeout start(long delay)(Code) | | Starts the timeout thread if it is not currently running. Nothing happens
if a thread is already running.
Parameters: delay - the delay from now in milliseconds the timeout state which can be queried for its timed out status |
|
|
|