Révision 2662
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/views/corpora/CorporaView.java (revision 2662) | ||
|---|---|---|
| 335 | 335 |
|
| 336 | 336 |
// FIXME: SJ tests, define here what to display |
| 337 | 337 |
if (selectedItem instanceof TXMResult) {
|
| 338 |
// TXMResult result = ((TXMResult)selectedItem);
|
|
| 338 |
TXMResult result = ((TXMResult) selectedItem);
|
|
| 339 | 339 |
// String mess = result.getSimpleDetails(); |
| 340 | 340 |
// if (mess == null) {
|
| 341 | 341 |
// mess = result.getCurrentName(); |
| ... | ... | |
| 343 | 343 |
// StatusLine.setMessage(mess); |
| 344 | 344 |
// StatusLine.setMessage(((TXMResult)selectedItem).getComputingDoneMessage()); |
| 345 | 345 |
|
| 346 |
if (selectedItem instanceof MainCorpus) { // just for this result type, pre-compute to show the corpus size
|
|
| 346 |
if (result instanceof MainCorpus) { // just for this result type, pre-compute to show the corpus size
|
|
| 347 | 347 |
try {
|
| 348 |
((MainCorpus) selectedItem).compute(false);
|
|
| 348 |
((MainCorpus) result).compute(false);
|
|
| 349 | 349 |
} |
| 350 | 350 |
catch (InterruptedException e1) {
|
| 351 | 351 |
// TODO Auto-generated catch block |
| ... | ... | |
| 353 | 353 |
} |
| 354 | 354 |
} |
| 355 | 355 |
|
| 356 |
StatusLine.setMessage(((TXMResult) selectedItem).getDetails()); |
|
| 356 |
if (!result.hasBeenComputedOnce()) {
|
|
| 357 |
StatusLine.setMessage("");
|
|
| 358 |
} |
|
| 359 |
else {
|
|
| 360 |
StatusLine.setMessage(((TXMResult) selectedItem).getDetails()); |
|
| 361 |
} |
|
| 357 | 362 |
} |
| 358 | 363 |
|
| 359 | 364 |
} |
Formats disponibles : Unified diff