| |
|
| java.lang.Object java.lang.Thread org.gjt.sp.util.WorkThread
WorkThread | public class WorkThread extends Thread implements ThreadAbortMonitor(Code) | | Services work requests in the background.
author: Slava Pestov version: $Id: WorkThread.java 10796 2007-10-04 08:46:18Z kpouer $ |
Inner Class :public static class Abort extends Error | |
abortCurrentRequest | public void abortCurrentRequest()(Code) | | Aborts the currently running request, if allowed.
since: jEdit 2.6pre1 |
getProgressMaximum | public int getProgressMaximum()(Code) | | Returns the progress maximum.
the maximum value of the progression |
getProgressValue | public int getProgressValue()(Code) | | Returns the progress value.
the progress value |
getStatus | public String getStatus()(Code) | | Returns the status text.
the status label |
isAborted | public boolean isAborted()(Code) | | |
isRequestRunning | public boolean isRequestRunning()(Code) | | Returns if the work thread is currently running a request.
true if a request is currently running |
setAbortable | public void setAbortable(boolean abortable)(Code) | | Sets if the current request can be aborted.
If set to true and already aborted, the thread will be stopped
Parameters: abortable - true if the WorkThread is abortable since: jEdit 2.6pre1 |
setProgressMaximum | public void setProgressMaximum(int progressMaximum)(Code) | | Sets the maximum progress value.
Parameters: progressMaximum - the maximum value of the progression since: jEdit 2.6pre1 |
setProgressValue | public void setProgressValue(int progressValue)(Code) | | Sets the progress value.
Parameters: progressValue - the new progress value since: jEdit 2.6pre1 |
setStatus | public void setStatus(String status)(Code) | | Sets the status text.
Parameters: status - the new status of the thread since: jEdit 2.6pre1 |
|
|
|