33 |
*/ |
*/ |
34 |
public abstract class EnhancedTask<R> extends AbstractTask<R> { |
public abstract class EnhancedTask<R> extends AbstractTask<R> { |
35 |
private boolean stopped = false; |
private boolean stopped = false; |
36 |
|
private boolean silent = false; |
37 |
|
|
38 |
/** |
/** |
39 |
* Marks that the execution of this task was interrupted. |
* Marks that the execution of this task was interrupted. |
50 |
isStopped() { return stopped; } |
isStopped() { return stopped; } |
51 |
|
|
52 |
/** |
/** |
53 |
|
* Determines whether an error message should be shown |
54 |
|
* if the execution of the task fail. |
55 |
|
*/ |
56 |
|
public boolean |
57 |
|
isSilent() { return silent; } |
58 |
|
|
59 |
|
/** |
60 |
|
* DSets whether an error message should be shown |
61 |
|
* if the execution of the task fail. |
62 |
|
*/ |
63 |
|
public void |
64 |
|
setSilent(boolean b) { silent = b; } |
65 |
|
|
66 |
|
/** |
67 |
* Sets the error details provided by the given exception (if the given |
* Sets the error details provided by the given exception (if the given |
68 |
* exception is <code>LSException</code> instance and contains error details). |
* exception is <code>LSException</code> instance and contains error details). |
69 |
*/ |
*/ |