Révision 2028
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/utils/JobHandler.java (revision 2028) | ||
|---|---|---|
| 54 | 54 |
protected Semaphore mySemaphore; |
| 55 | 55 |
protected boolean canBeInterrupted = false; |
| 56 | 56 |
|
| 57 |
Object result = null; |
|
| 58 |
|
|
| 57 | 59 |
protected boolean success = false; |
| 58 | 60 |
/** |
| 59 | 61 |
* Instantiates a new job handler. |
| ... | ... | |
| 257 | 259 |
* @return |
| 258 | 260 |
*/ |
| 259 | 261 |
public Object getResultObject() {
|
| 260 |
return null;
|
|
| 262 |
return result;
|
|
| 261 | 263 |
} |
| 262 | 264 |
|
| 265 |
/** |
|
| 266 |
* can be used to store the job result after join() has been called |
|
| 267 |
* |
|
| 268 |
* @return |
|
| 269 |
*/ |
|
| 270 |
public void setResultObject(Object result) {
|
|
| 271 |
this.result = result; |
|
| 272 |
} |
|
| 273 |
|
|
| 263 | 274 |
@Override |
| 264 | 275 |
public void beginTask(String name, int totalWork) {
|
| 265 | 276 |
if (currentMonitor != null) currentMonitor.beginTask(name, totalWork); |
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/workspace/LoadBinaryCorpus.java (revision 2028) | ||
|---|---|---|
| 200 | 200 |
protected IStatus run(final IProgressMonitor monitor) {
|
| 201 | 201 |
this.runInit(monitor); |
| 202 | 202 |
final Project newProject2 = loadBinaryCorpusArchive(zipFile, this, monitor, false); |
| 203 |
|
|
| 203 |
this.setResultObject(newProject2); |
|
| 204 | 204 |
this.syncExec(new Runnable() {
|
| 205 | 205 |
@Override |
| 206 | 206 |
public void run() {
|
Formats disponibles : Unified diff