Révision 2755
tmp/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/editors/ChartEditor.java (revision 2755) | ||
---|---|---|
313 | 313 |
|
314 | 314 |
// loading chart |
315 | 315 |
Log.fine(TXMCoreMessages.bind("Loading chart of type {0}...", this.getResult().getResultType())); //$NON-NLS-1$ |
316 |
this.loadChart(); |
|
316 |
this.loadChart(needInit);
|
|
317 | 317 |
|
318 |
|
|
319 |
// FIXME: SJ: this code should be moved in ChartComposite.loadChart()? |
|
320 |
if (needInit) { |
|
321 |
this.onInit(); |
|
322 |
} |
|
323 |
|
|
324 |
// sublcass updating |
|
318 |
// subclass updating |
|
325 | 319 |
this.updateEditorFromChart(update); |
326 | 320 |
|
327 | 321 |
} |
... | ... | |
477 | 471 |
/** |
478 | 472 |
* Loads the chart from the chart object stored into the composite. |
479 | 473 |
* |
474 |
* @param needInit |
|
475 |
* |
|
480 | 476 |
* @param resetView |
481 | 477 |
* @param clearChartItemsSelection |
482 | 478 |
*/ |
483 |
public void loadChart() { |
|
479 |
public void loadChart(final boolean needInit) {
|
|
484 | 480 |
|
485 | 481 |
|
486 | 482 |
Point size = chartComposite.getSize(); |
... | ... | |
493 | 489 |
getResult().needsToResetView(), |
494 | 490 |
getResult().needsToClearItemsSelection(), |
495 | 491 |
getResult().needsToSquareOff()); |
492 |
|
|
493 |
// FIXME: SJ: this code should be moved in ChartComposite.loadChart()? |
|
494 |
if (needInit) { |
|
495 |
onInit(); |
|
496 |
} |
|
496 | 497 |
} |
497 | 498 |
}); |
498 | 499 |
} |
... | ... | |
505 | 506 |
getResult().needsToResetView(), |
506 | 507 |
getResult().needsToClearItemsSelection(), |
507 | 508 |
getResult().needsToSquareOff()); |
509 |
|
|
510 |
// FIXME: SJ: this code should be moved in ChartComposite.loadChart()? |
|
511 |
if (needInit) { |
|
512 |
onInit(); |
|
513 |
} |
|
508 | 514 |
} |
509 | 515 |
}); |
510 | 516 |
} |
Formats disponibles : Unified diff