Révision 2570
tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 2570) | ||
---|---|---|
2331 | 2331 |
|
2332 | 2332 |
// skip the process if the result is already in computing stage |
2333 | 2333 |
if (this.computing) { |
2334 |
|
|
2335 |
Log.finest(NLS.bind("TXMResult.compute(): {0}: The result is already computing, compute process aborted.", this.getClass().getSimpleName())); // $NON-NLS-1$ |
|
2336 |
|
|
2334 |
Log.finest(NLS.bind("--- TXMResult.compute(): {0}: The result is already computing, compute process aborted.", this.getClass().getSimpleName())); // $NON-NLS-1$ |
|
2337 | 2335 |
return true; |
2338 | 2336 |
} |
2339 | 2337 |
|
... | ... | |
2475 | 2473 |
// Children computing |
2476 | 2474 |
if (!skipComputing |
2477 | 2475 |
|| this.altered // FIXME: SJ: fix for computing LexicalTable children even if the LT is not dirty but only altered, need to define if it's a temporary fix or not |
2478 |
// eg. can't we use the dirty state rather than a new member "altered"? |
|
2476 |
// e.g. can't we use the dirty state rather than a new member "altered"?
|
|
2479 | 2477 |
) { |
2480 | 2478 |
|
2481 | 2479 |
if (monitor != null && children.size() > 1) { |
... | ... | |
2498 | 2496 |
|
2499 | 2497 |
TXMResult child = this.children.get(i); |
2500 | 2498 |
// lazy loading test |
2501 |
// only compute the child it has already been computed one time ("loaded" one time) |
|
2502 |
// or if this result always needs its children synchronized/computed to be consistent (eg. Partition and children parts) |
|
2499 |
// only compute the child if it has already been computed one time ("loaded" one time)
|
|
2500 |
// or if this result always needs its children synchronized/computed to be consistent (e.g. Partition and children parts)
|
|
2503 | 2501 |
if ((deepComputing && child.hasBeenComputedOnce()) || child.mustBeSynchronizedWithParent()) { |
2504 | 2502 |
child.compute(monitor, deepComputing); |
2505 | 2503 |
// subMonitor.worked(1); |
Formats disponibles : Unified diff