Révision 2739

tmp/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/swt/SwingChartComposite.java (revision 2739)
542 542
				// recreates the chart if not of right type
543 543
				if (this.chartEditor.getResult().isChartDirty()) {
544 544
					try {
545
						// this.chartEditor.getResult().clearLastRenderingParameters(); //FIXME: SJ: seems to became useless
545
						// this.chartEditor.getResult().clearLastRenderingParameters(); // FIXME: SJ: seems to became useless
546 546
						this.chartEditor.getResult().compute();
547 547
					}
548 548
					catch (Exception e) {
......
560 560
		}
561 561
	}
562 562
	
563
	// // FIXME: SJ: old code that has been lost from SVGCharrtComposite when creating the class SwingChartComposite, dedicated to recreate a chart if its not of the right type
564
	// when trying to load it in the composite (e.g. File or JFreeChart)
565
	// @Override
566
	// public void loadChart() {
567
	// if(!this.chartEditor.getResult().isChartDirty()) {
568
	// // creates components if they not exist
569
	// if(this.chartComponent == null) {
570
	//
571
	// this.chartEditor.getSWTChartsComponentsProvider().createChartContainer(this.chartEditor.getEditorInput());
572
	// this.chartComponent = (IChartComponent) this.chartEditor.getEditorInput().getChartContainer();
573
	//
574
	// this.rootPanel.add((Component) this.chartComponent);
575
	//
576
	// this.frame.setVisible(true);
577
	// }
578
	// // loads the chart from the result
579
	// Object chart = this.chartEditor.getEditorInput().getChart();
580
	// // recreates the chart if not of right type
581
	// if(!(chart instanceof File)) {
582
	// this.file = this.chartEditor.getSWTChartsComponentsProvider().getChartsEngine().getChartCreator(this.chartEditor.getResult()).createChartFile(this.chartEditor.getResult());
583
	// }
584
	// else {
585
	// this.file = (File) chart;
586
	// }
587
	//
588
	// this.loadSVGDocument(this.file);
589
	// }
590
	// }
563 591
	
564 592
	
565 593
	
566 594
	
595
	
567 596
	@Override
568 597
	public void copyChartViewToClipboard() {
569 598
		

Formats disponibles : Unified diff