Revision 1784

tmp/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/swt/SwingChartComposite.java (revision 1784)
92 92
			// creates components if they not exist
93 93
			if(this.chartComponent == null) {
94 94

  
95
				// FIXME! tmp fix to avoid dependencies but need to validate it works well
96 95
				// recreates the chart if not of right type
97 96
				if(this.chartEditor.getResult().isChartDirty())	{
98
				//if(!(chart instanceof JFreeChart))	{
99 97
					try {
100 98
						this.chartEditor.getResult().clearLastRenderingParameters();
101 99
						this.chartEditor.getResult().compute();
102 100
					}
103 101
					catch (Exception e) {
104
						// TODO Auto-generated catch block
105 102
						e.printStackTrace();
106 103
					}
107 104
				}
......
112 109
				this.rootPanel.add((Component) this.chartComponent);
113 110

  
114 111
				this.frame.setVisible(true);
115
				
116
				// FIXME: useless?
117
				//this.chartEditor.registerEventCallBackExtensions();
118

  
119 112
			}
120 113
			this.loadChart(this.chartEditor.getChart());
114
			// FIXME: SJ: need to fix the focus behavior on the 3 OS
121 115
			//this.setFocus();
122 116
			//this.forceFocus();
123 117
		}

Also available in: Unified diff