Révision 1870
tmp/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/editors/ChartEditor.java (revision 1870) | ||
---|---|---|
187 | 187 |
|
188 | 188 |
this.swtChartsComponentsProvider = SWTChartsComponentsProvider.getComponentsProvider(this.getResult().getChartsEngine()); |
189 | 189 |
|
190 |
if(this.swtChartsComponentsProvider == null) { |
|
191 |
throw new Exception("No suitable component found to render the specified chart."); |
|
192 |
} |
|
193 |
|
|
190 | 194 |
// Chart composite |
191 | 195 |
this.chartComposite = this.swtChartsComponentsProvider.createComposite(this, this.getResultArea()); |
192 | 196 |
|
... | ... | |
272 | 276 |
// and recreate new ChartCoomposite and ChartComponent |
273 | 277 |
if(this.getResult().getChartsEngine() != this.swtChartsComponentsProvider.getChartsEngine()) { |
274 | 278 |
|
275 |
Log.finest("ChartEditor.__updateEditorFromResult(): result charts engine = " + this.getResult().getChartsEngine().getName() + " / Editor charts engine = " + this.swtChartsComponentsProvider.getChartsEngine().getName() + "."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
|
279 |
Log.finest("ChartEditor.updateEditorFromResult(): result charts engine = " + this.getResult().getChartsEngine().getName() + " / Editor charts engine = " + this.swtChartsComponentsProvider.getChartsEngine().getName() + "."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
|
276 | 280 |
|
277 |
//this.getEditorInput().setSWTChartsComponentsProvider(SWTChartsComponentsProvider.getComponentsProvider(this.getResult().getChartsEngine())); |
|
278 | 281 |
this.swtChartsComponentsProvider = SWTChartsComponentsProvider.getComponentsProvider(this.getResult().getChartsEngine()); |
279 | 282 |
this.swtChartsComponentsProvider.setChartsEngine(this.getResult().getChartsEngine()); |
280 | 283 |
|
281 |
Log.finest("ChartEditor.__updateEditorFromResult(): charts engine used to create the chart does not match the editor one. The SWT components provider has been changed to match it: " + this.getSWTChartsComponentsProvider() + "."); //$NON-NLS-1$ //$NON-NLS-2$
|
|
284 |
Log.finest("ChartEditor.updateEditorFromResult(): charts engine used to create the chart does not match the editor one. The SWT components provider has been changed to match it: " + this.getSWTChartsComponentsProvider() + "."); //$NON-NLS-1$ //$NON-NLS-2$ |
|
282 | 285 |
|
283 | 286 |
// recreating the chart composite |
284 | 287 |
Composite parent = this.chartComposite.getParent(); |
Formats disponibles : Unified diff