|
Lines 655-660
Link Here
|
| 655 |
|
655 |
|
| 656 |
// Update the context with a locale if it is undefined. |
656 |
// Update the context with a locale if it is undefined. |
| 657 |
final Chart cmRunTime = (Chart) EcoreUtil.copy( model ); |
657 |
final Chart cmRunTime = (Chart) EcoreUtil.copy( model ); |
|
|
658 |
//bidi_acgc added start // Workaround because EcoreUtil.copy method is not aware of the direction property of charts |
| 659 |
if (model != null) |
| 660 |
cmRunTime.setDirection(model.getDirection()); |
| 661 |
//bidi_acgc added end |
| 658 |
rtc.setULocale( locale != null ? locale : ULocale.getDefault( ) ); |
662 |
rtc.setULocale( locale != null ? locale : ULocale.getDefault( ) ); |
| 659 |
|
663 |
|
| 660 |
ChartScriptContext csc = new ChartScriptContext( ); |
664 |
ChartScriptContext csc = new ChartScriptContext( ); |
|
Lines 891-896
Link Here
|
| 891 |
// re-init chart script context. |
895 |
// re-init chart script context. |
| 892 |
ChartScriptContext csc = new ChartScriptContext( ); |
896 |
ChartScriptContext csc = new ChartScriptContext( ); |
| 893 |
Chart cmRunTime = (Chart) EcoreUtil.copy( cmDesignTime ); |
897 |
Chart cmRunTime = (Chart) EcoreUtil.copy( cmDesignTime ); |
|
|
898 |
//bidi_acgc added start |
| 899 |
//Make the model aware of the direction property updates |
| 900 |
Chart tempChart = ((Chart) EcoreUtil.copy( cmDesignTime )); |
| 901 |
if (cmDesignTime != null) |
| 902 |
cmRunTime.setDirection(cmDesignTime.getDirection()); |
| 903 |
//bidi_acgc added end |
| 894 |
ChartUtil.pruneInvisibleSeries( cmRunTime ); |
904 |
ChartUtil.pruneInvisibleSeries( cmRunTime ); |
| 895 |
csc.setChartInstance( cmRunTime ); |
905 |
csc.setChartInstance( cmRunTime ); |
| 896 |
csc.setExternalContext( externalContext ); |
906 |
csc.setExternalContext( externalContext ); |